]> granicus.if.org Git - ipset/commitdiff
Respect LDFLAGS settings at compile time (Peter Volkov).
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Fri, 6 Mar 2009 10:02:37 +0000 (11:02 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Fri, 6 Mar 2009 10:02:37 +0000 (11:02 +0100)
Makefile

index e74fd2f6e64755c23cea97f67e747ac772c5630b..5b9c32d2706fd8de1842e26fefd0ccb00485f0e9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -110,14 +110,14 @@ ipset.o: ipset.c ipset.h
        $(CC) $(CFLAGS) -DIPSET_VERSION=\"$(IPSET_VERSION)\" -DIPSET_LIB_DIR=\"$(IPSET_LIB_DIR)\" -c -o $@ $<
 
 ipset: ipset.o
-       $(CC) $(CFLAGS) -rdynamic -o $@ $^ -ldl
+       $(CC) $(CFLAGS) $(LDFLAGS) -rdynamic -o $@ $^ -ldl
 
 #Pooltypes
 ipset_%.o: ipset_%.c ipset.h
        $(CC) $(SH_CFLAGS) -o $@ -c $<
 
 libipset_%.so: ipset_%.o
-       $(CC) -shared -o $@ $<
+       $(CC) -shared $(LDFLAGS) -o $@ $<
 
 $(DESTDIR)$(LIBDIR)/ipset/libipset_%.so: libipset_%.so
        @[ -d $(DESTDIR)$(LIBDIR)/ipset ] || mkdir -p $(DESTDIR)$(LIBDIR)/ipset