OTHERSUBDIRS = docs autodeps
OBJS = rpm.o query.o install.o verify.o checksig.o ftp.o url.o @GETTEXTSTUB@
PROGS = @RPM@ rpm2cpio
-LOADLIBES = -lbuild $(topdir)/lib/librpm.a -lmisc @LIBS@ @LIBINTL@ @LIBDL@
+LIBS = @LIBS@ @LIBINTL@ @LIBDL@
+LOADLIBES = -lbuild $(topdir)/lib/librpm.a -lmisc
SOURCES = $(subst .o,.c,$(OBJS))
all: $(TARGET)
-rpm: lib/librpm.a build/libbuild.a misc/libmisc.a $(OBJS)
- $(CC) -o rpm -static $(LDFLAGS) $(OBJS) $(LOADLIBES) \
+rpm: lib/librpm.a build/libbuild.a misc/libmisc.a $(OBJS)
+ $(CC) -o rpm -static $(LDFLAGS) $(OBJS) $(LOADLIBES) $(LIBS) \
$(LIBEFENCE)
rpm.shared: lib/librpm.a build/libbuild.a $(OBJS)
- $(CC) -o rpm.shared $(LDFLAGS) $(OBJS) $(LOADLIBES) \
+ $(CC) -o rpm.shared $(LDFLAGS) $(OBJS) $(LOADLIBES) $(LIBS) \
$(LIBEFENCE)
# we don't normally build this, so ./configure doesn't try very hard
# to make it work
rpmconvert: lib/librpm.a convertdb.o oldrpmdb.o
- $(CC) -o rpmconvert $(LDFLAGS) convertdb.o oldrpmdb.o -lgdbm $(LOADLIBES)
+ $(CC) -o rpmconvert $(LDFLAGS) convertdb.o oldrpmdb.o -lgdbm \
+ $(LOADLIBES) $(LIBS)
rpm2cpio: lib/librpm.a rpm2cpio.o
- $(CC) -o rpm2cpio $(LDFLAGS) rpm2cpio.o $(LOADLIBES)
+ $(CC) -o rpm2cpio $(LDFLAGS) rpm2cpio.o $(LOADLIBES) $(LIBS)
rpm.o: rpm.c query.h install.h lib/rpmlib.h Makefile
$(CC) $(CFLAGS) -DRPMNLSPACKAGE=\"$(RPMNLSPACKAGE)\" \
-DLIBRPMRC_FILENAME="\"$(LIBRPMRC_FILENAME)"\" \
-DLIBRPMALIAS_FILENAME="\"$(LIBRPMALIAS_FILENAME)"\" \
-DVERSION=\"$(VERSION)\"
-LDFLAGS = @LDFLAGS@ @LIBS@ -Llib -Lbuild -Lmisc -L$(topdir)/lib \
+LDFLAGS = @LDFLAGS@ -Llib -Lbuild -Lmisc -L$(topdir)/lib \
-L$(topdir)/build -L$(topdir)/misc
VERSION = 2.4
CC = @CC@
AC_CHECK_TOOL(AR, ar, :)
-CPIOBIN="cpio"
-GZIPBIN="gzip"
if test "$cross_compiling" != "yes"; then
AC_MSG_CHECKING(checking for GNU cpio...)
if test -z "$CPIOBIN"; then
if test -z "$CPIOBIN"; then
AC_MSG_RESULT(no)
AC_MSG_WARN(RPM will not work without GNU cpio 2.4.2 or later.)
+ CPIOBIN="cpio"
else
AC_MSG_RESULT(yes)
fi
fi
if test -z "$GZIPBIN"; then
+ GZIPBIN="gzip"
AC_MSG_RESULT(no)
AC_MSG_WARN(RPM will not work without GNU gzip.)
else
topdir: @prefix@/src/redhat
tmppath: @tmpdir@
cpiobin: @CPIOBIN@
-gzip: @GZIPBIN@
+gzipbin: @GZIPBIN@
defaultdocdir: @prefix@/doc
fixperms: @FIXPERMS@
{ "fixperms", RPMVAR_FIXPERMS, 0 },
{ "ftpport", RPMVAR_FTPPORT, 0 },
{ "ftpproxy", RPMVAR_FTPPROXY, 0 },
+ { "gzipbin", RPMVAR_GZIPBIN, 0 },
{ "messagelevel", RPMVAR_MESSAGELEVEL, 0 },
{ "netsharedpath", RPMVAR_NETSHAREDPATH, 0 },
{ "optflags", RPMVAR_OPTFLAGS, 1 },