From: Jozsef Kadlecsik Date: Fri, 6 Mar 2009 10:02:37 +0000 (+0100) Subject: Respect LDFLAGS settings at compile time (Peter Volkov). X-Git-Tag: v2.5.0~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80850804c812cf2602ebf2994e4c13a0296622be;p=thirdparty%2Fipset.git Respect LDFLAGS settings at compile time (Peter Volkov). --- diff --git a/Makefile b/Makefile index e74fd2f6..5b9c32d2 100644 --- 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