Don't specify LDFLAGS when using LTLINK to avoid duplicate

specfication of flags.
This commit is contained in:
Kurt Zeilenga 2000-10-01 08:10:37 +00:00
parent 74b048a5a4
commit 003a293e2b
6 changed files with 11 additions and 15 deletions

View File

@ -17,4 +17,4 @@ PROGRAMS = testavl
XLIBS = -lavl
testavl: $(LIBRARY) testavl.o
$(LTLINK) $(LDFLAGS) -o $@ testavl.o $(LIBS)
$(LTLINK) -o $@ testavl.o $(LIBS)

View File

@ -37,11 +37,11 @@ EXTRA_LIBS =
CPPFLAGS = $(@PLAT@_@LIB_LINKAGE@_TEST_DEFS)
dtest: $(LIBRARY) dtest.o
$(LTLINK) $(LDFLAGS) -o $@ dtest.o $(LIBS)
$(LTLINK) -o $@ dtest.o $(LIBS)
etest: $(LIBRARY) etest.o
$(LTLINK) $(LDFLAGS) -o $@ etest.o $(LIBS)
$(LTLINK) -o $@ etest.o $(LIBS)
idtest: $(LIBRARY) idtest.o
$(LTLINK) $(LDFLAGS) -o $@ idtest.o $(LIBS)
$(LTLINK) -o $@ idtest.o $(LIBS)
install-local: FORCE
-$(MKDIR) $(DESTDIR)$(libdir)

View File

@ -55,11 +55,11 @@ EXTRA_LIBS = $(@PLAT@_@LIB_LINKAGE@_LIB_LIBS) $(@PLAT@_XXLIBS)
CPPFLAGS = $(@PLAT@_@LIB_LINKAGE@_TEST_DEFS)
apitest: $(LIBRARY) apitest.o $(LDAP_LIBLBER_DEPEND)
$(LTLINK) $(LDFLAGS) -o $@ apitest.o $(LIBS)
$(LTLINK) -o $@ apitest.o $(LIBS)
ltest: $(LIBRARY) test.o $(LDAP_LIBLBER_DEPEND)
$(LTLINK) $(LDFLAGS) -o $@ test.o $(LIBS)
$(LTLINK) -o $@ test.o $(LIBS)
ttest: $(LIBRARY) tmpltest.o $(LDAP_LIBLBER_DEPEND)
$(LTLINK) $(LDFLAGS) -o $@ tmpltest.o $(LIBS)
$(LTLINK) -o $@ tmpltest.o $(LIBS)
CFFILES=ldap.conf ldapfilter.conf ldaptemplates.conf ldapsearchprefs.conf

View File

@ -78,11 +78,11 @@ clean-local: FORCE
depend-common: .links
apitest: $(LIBRARY) apitest.o $(LDAP_LIBLBER_DEPEND)
$(LTLINK) $(LDFLAGS) -o $@ apitest.o $(LIBS)
$(LTLINK) -o $@ apitest.o $(LIBS)
ltest: $(LIBRARY) test.o $(LDAP_LIBLBER_DEPEND)
$(LTLINK) $(LDFLAGS) -o $@ test.o $(LIBS)
$(LTLINK) -o $@ test.o $(LIBS)
ttest: $(LIBRARY) tmpltest.o $(LDAP_LIBLBER_DEPEND)
$(LTLINK) $(LDFLAGS) -o $@ tmpltest.o $(LIBS)
$(LTLINK) -o $@ tmpltest.o $(LIBS)
install-local: $(CFFILES) FORCE
-$(MKDIR) $(DESTDIR)$(libdir)

View File

@ -6,7 +6,6 @@
##
LIBRARY = libldbm.a
XPROGRAMS = testldbm
SRCS = ldbm.c
OBJS = ldbm.o
@ -19,6 +18,3 @@ CPPFLAGS = $(@PLAT@_@LIB_LINKAGE@_LIB_DEFS)
XLIBS = -lldbm -lavl
XXLIBS = $(LDBM_LIBS)
testldbm: libldbm.a testldbm.o
$(CC) $(LDFLAGS) -o $@ testldbm.o $(LIBS)

View File

@ -20,7 +20,7 @@ LDAP_INCDIR= ../../include
LDAP_LIBDIR= ../../libraries
ucgendat: $(LIBRARY) ucgendat.o
$(LTLINK) $(LDFLAGS) -o $@ ucgendat.o $(LIBS)
$(LTLINK) -o $@ ucgendat.o $(LIBS)
./ucgendat $(srcdir)/UnicodeData.txt
DATFILES = case.dat cmbcl.dat ctype.dat decomp.dat num.dat