From c012379e0bde4d9af8446f17afca1d6b13470b84 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 7 Nov 2009 21:04:53 +0100 Subject: [PATCH] build: link to libxtables_LIBS This should make AutoReqProv (or equivalent) do the dependencies instead of manually having to specify it. --- Makefile.iptrules.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.iptrules.in b/Makefile.iptrules.in index d332146..8be21fc 100644 --- a/Makefile.iptrules.in +++ b/Makefile.iptrules.in @@ -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 $<;