]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
build: link to libxtables_LIBS
authorJan Engelhardt <jengelh@medozas.de>
Sat, 7 Nov 2009 20:04:53 +0000 (21:04 +0100)
committerJan Engelhardt <jengelh@medozas.de>
Sat, 7 Nov 2009 20:04:53 +0000 (21:04 +0100)
This should make AutoReqProv (or equivalent) do the dependencies
instead of manually having to specify it.

Makefile.iptrules.in

index d33214676f373f19ca420c5df6b54885a61d228f..8be21fc99b35086adc99ec8d5ae682986c38e80b 100644 (file)
@@ -11,6 +11,7 @@ CCLD            = ${CC}
 
 regular_CFLAGS  = @regular_CFLAGS@
 libxtables_CFLAGS = @libxtables_CFLAGS@
+libxtables_LIBS   = @libxtables_LIBS@
 AM_CFLAGS         = ${regular_CFLAGS} ${libxtables_CFLAGS}
 AM_DEPFLAGS     = -Wp,-MMD,$(@D)/.$(@F).d,-MT,$@
 
@@ -53,7 +54,7 @@ clean:
        rm -f *.oo *.so;
 
 lib%.so: lib%.oo
-       ${AM_V_CCLD}${CCLD} ${AM_LDFLAGS} -shared ${LDFLAGS} -o $@ $< ${LDLIBS};
+       ${AM_V_CCLD}${CCLD} ${AM_LDFLAGS} -shared ${LDFLAGS} -o $@ $< ${libxtables_LIBS} ${LDLIBS};
 
 %.oo: ${XA_SRCDIR}/%.c
        ${AM_V_CC}${CC} ${AM_DEPFLAGS} ${AM_CFLAGS} -DPIC -fPIC ${CFLAGS} -o $@ -c $<;