link librpmdb with -lrpm

This commit is contained in:
Дмитрий Левин 2004-03-21 23:21:42 +00:00
parent ae754d250e
commit ae2e79a5ce

View File

@ -16,19 +16,14 @@ pkgincdir = $(pkgincludedir)
pkginc_HEADERS = rpmdb.h
noinst_HEADERS = falloc.h fprint.h rpmhash.h
mylibpaths = \
-L$(top_builddir)/lib/.libs \
-L$(top_builddir)/rpmio/.libs
mylibs = -lrpm -lrpmio @LIBS@ @LIBINTL@
LIBS =
lib_LTLIBRARIES = librpmdb.la
librpmdb_la_SOURCES = $(DBLIBSRCS) \
dbconfig.c fprint.c merge.c poptDB.c rpmhash.c rpmdb.c
librpmdb_la_LDFLAGS = -release @VERSION@ @libdb3@
librpmdb_la_LIBADD = $(LIBDB) $(top_builddir)/rpmio/librpmio.la
librpmdb_la_DEPENDENCIES = $(top_builddir)/rpmio/librpmio.la
librpmdb_la_LIBADD = $(LIBDB) $(top_builddir)/lib/librpm.la
librpmdb_la_DEPENDENCIES = $(top_builddir)/lib/librpm.la
falloc.lo: falloc.c $(top_srcdir)/system.h $(top_srcdir)/rpmio/rpmio.h falloc.h
$(LIBTOOL) --mode=compile $(COMPILE) -c $<
@ -45,7 +40,7 @@ lclint:
lclint $(DEFS) $(INCLUDES) $(librpmdb_la_SOURCES)
tdbi: librpmdb.la tdbi.o
$(LINK) -all-static $@.o $< $(mylibpaths) $(mylibs) $(LIBS)
$(LINK) -all-static $@.o $< $(LIBS)
tfalloc: librpmdb.la tfalloc.o
$(LINK) -all-static $@.o $< $(mylibpaths) $(mylibs) $(LIBS)
$(LINK) -all-static $@.o $< $(LIBS)