summaryrefslogtreecommitdiff
blob: 9085fa7017dd8fd7ea0b54b7c76d1c1d717f535c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
Try and disable over-engineering in the rpm build system.

--- configure.ac
+++ configure.ac
@@ -117,7 +117,7 @@
 dnl
 with_selinuxval=no
 AC_MSG_CHECKING(flag used by libtool to link rpm)
-if test X"$GCC" = Xyes ; then
+if false ; then
 	case "$target" in
 		*-*-linux*)	LDFLAGS_STATIC="-all-static"
 				with_selinuxval=yes ;;
@@ -160,14 +160,6 @@
 dnl XXX Test for libpthread.a that is NPTL aware (static link only).
 dnl
 LDFLAGS_NPTL=
-if test -f /usr/lib/nptl/libpthread.a ; then
-    LDFLAGS_NPTL="-L/usr/lib/nptl"
-#    INCPATH="$INCPATH -I/usr/include/nptl"
-fi
-if test -f /usr/lib64/nptl/libpthread.a ; then
-    LDFLAGS_NPTL="-L/usr/lib64/nptl"
-#    INCPATH="$INCPATH -I/usr/include/nptl"
-fi
 AC_SUBST(LDFLAGS_NPTL)
 
 dnl
@@ -1289,9 +1281,7 @@
 
 dnl XXX Choose /usr/lib or /usr/lib64 for library installs.
 MARK64=
-case "${target_cpu}" in
-x86_64*|ppc64*|powerpc64*|sparc64*|s390x*)	MARK64=64 ;;
-esac
+MARK64=ALL-SCREWED-UP
 AC_SUBST(MARK64)
 
 # For some systems we know that we have ld_version scripts.
@@ -1363,7 +1363,7 @@
 AC_SUBST(LOCALEDIR)
 LIBDIR="`echo $libdir | sed 's-/lib$-/%{_lib}-'`"
 AC_SUBST(LIBDIR)
-RPMCONFIGDIR="`echo ${usrprefix}/lib/rpm`"
+RPMCONFIGDIR="`echo ${LIBDIR}/rpm`"
 AC_DEFINE_UNQUOTED(RPMCONFIGDIR, "$RPMCONFIGDIR",
 	[Full path to rpm global configuration directory (usually /usr/lib/rpm)])
 AC_SUBST(RPMCONFIGDIR)
--- python/Makefile.am
+++ python/Makefile.am
@@ -4,8 +4,8 @@
 
 LINT = splint
 
-pylibdir = ${prefix}/lib@MARK64@/python@WITH_PYTHON_VERSION@
-pyincdir = $(prefix)/include/python@WITH_PYTHON_VERSION@
+pylibdir = $(libdir)/python@WITH_PYTHON_VERSION@
+pyincdir = $(includedir)/python@WITH_PYTHON_VERSION@
 
 SUBDIRS = rpm
 
--- python/rpm/Makefile.am
+++ python/rpm/Makefile.am
@@ -4,8 +4,8 @@
 
 PYVER = @WITH_PYTHON_VERSION@
 
-pylibdir = ${prefix}/lib@MARK64@/python@WITH_PYTHON_VERSION@
-pyincdir = $(prefix)/include/python@WITH_PYTHON_VERSION@
+pylibdir = $(libdir)/python@WITH_PYTHON_VERSION@
+pyincdir = $(includedir)/python@WITH_PYTHON_VERSION@
 
 EXTRA_DIST = \
 	__init__.py
--- lib/Makefile.am
+++ lib/Makefile.am
@@ -29,10 +29,7 @@
 mylibs = librpm.la
 LIBS =
 
-LDFLAGS = -L$(RPM_BUILD_ROOT)$(usrlibdir) -L$(DESTDIR)$(usrlibdir)
-
-usrlibdir = $(libdir)@MARK64@
-usrlib_LTLIBRARIES = librpm.la
+lib_LTLIBRARIES = librpm.la
 librpm_la_SOURCES = \
 	cpio.c depends.c formats.c fs.c fsm.c getdate.c \
 	manifest.c misc.c package.c \
--- build/Makefile.am
+++ build/Makefile.am
@@ -24,10 +24,7 @@
 pkginc_HEADERS = rpmbuild.h rpmfc.h rpmfile.h rpmspec.h
 noinst_HEADERS = buildio.h
 
-LDFLAGS = -L$(RPM_BUILD_ROOT)$(usrlibdir) -L$(DESTDIR)$(usrlibdir)
-
-usrlibdir = $(libdir)@MARK64@
-usrlib_LTLIBRARIES = librpmbuild.la
+lib_LTLIBRARIES = librpmbuild.la
 librpmbuild_la_SOURCES = \
 	build.c expression.c files.c misc.c names.c pack.c \
 	parseBuildInstallClean.c parseChangelog.c parseDescription.c \
--- rpmdb/Makefile.am
+++ rpmdb/Makefile.am
@@ -41,11 +41,7 @@
 # XXX watchout, ../db3/libdb.la created by this Makefile may surprise
 libdb_la = $(top_builddir)/$(WITH_DB_SUBDIR)/libdb.la
 
-# XXX grrr, RPM_BUILD_ROOT prevents build pollution if/when -lrpm different
-LDFLAGS = -L$(RPM_BUILD_ROOT)$(usrlibdir) -L$(DESTDIR)$(usrlibdir)
-
-usrlibdir = $(libdir)@MARK64@
-usrlib_LTLIBRARIES = librpmdb.la
+lib_LTLIBRARIES = librpmdb.la
 librpmdb_la_SOURCES = \
 	dbconfig.c fprint.c \
 	hdrNVR.c header.c header_internal.c legacy.c merge.c \
--- rpmio/Makefile.am
+++ rpmio/Makefile.am
@@ -26,10 +26,7 @@
 
 BEECRYPTLOBJS = $(shell test X"@WITH_BEECRYPT_SUBDIR@" != X && cat $(top_builddir)/@WITH_BEECTYPT_SUBDIR@/listobjs)
 
-LDFLAGS = -L$(RPM_BUILD_ROOT)$(usrlibdir) -L$(DESTDIR)$(usrlibdir)
-
-usrlibdir = $(libdir)@MARK64@
-usrlib_LTLIBRARIES = librpmio.la
+lib_LTLIBRARIES = librpmio.la
 librpmio_la_SOURCES = \
 	argv.c digest.c fts.c macro.c rmd128.c rmd160.c rpmdav.c \
 	rpmhook.c rpmio.c rpmlog.c rpmlua.c rpmmalloc.c \
--- scripts/Makefile.am
+++ scripts/Makefile.am
@@ -25,7 +25,7 @@
 
 all:
 
-configdir = ${prefix}/lib/rpm
+configdir = $(libdir)/rpm
 config_SCRIPTS = \
 	brp-compress brp-python-bytecompile brp-java-gcjcompile brp-redhat \
 	brp-strip brp-strip-comment-note brp-nobuildrootpath \
--- tools/Makefile.am
+++ tools/Makefile.am
@@ -49,10 +49,6 @@
 #rpmdeps_LDFLAGS =	$(staticLDFLAGS)
 rpmdeps_LDADD =		$(top_builddir)/build/librpmbuild.la
 
-rpmfile.c: $(top_srcdir)/file/src/file.c
-	rm -f $@
-	ln -s $< $@
-
 rpmfile_SOURCES =	rpmfile.c
 rpmfile_CFLAGS =	-DMAGIC='"$(MAGIC)"' $(INCLUDES)
 rpmfile_LDADD =		$(top_builddir)/rpmio/librpmio.la