From: Jan Engelhardt Date: Sun, 10 Feb 2008 23:29:36 +0000 (+0100) Subject: Fix compilation of iptables-static build X-Git-Tag: v1.4.1-rc1~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c924621bb986c445864bdabdc38d2f13efa99ae5;p=thirdparty%2Fiptables.git Fix compilation of iptables-static build Adjust the _INIT macro and thus fix the build/linking procedure of the monolithic do-it-all binary (iptables-static). Also fix the Makefile since unfortunately, lib%.o does not seem to have a higher precedence than %.o --- diff --git a/extensions/GNUmakefile.in b/extensions/GNUmakefile.in index 155703d8..48924091 100644 --- a/extensions/GNUmakefile.in +++ b/extensions/GNUmakefile.in @@ -91,7 +91,7 @@ clean: distclean: clean rm -f .*.d .*.dd; -%.o: %.c +init%.o: ${srcdir}/init%.c ${AM_VERBOSE_CC} ${CC} ${AM_DEPFLAGS} ${AM_CFLAGS} -D_INIT=$*_init ${CFLAGS} -o $@ -c $<; -include .*.d @@ -104,7 +104,7 @@ lib%.so: lib%.oo ${AM_VERBOSE_CCLD} ${CCLD} ${AM_LDFLAGS} -shared ${LDFLAGS} -o $@ $<; lib%.oo: ${srcdir}/lib%.c - ${AM_VERBOSE_CC} ${CC} ${AM_DEPFLAGS} ${AM_CFLAGS} -D_INIT=$*_init -DPIC -fPIC ${CFLAGS} -o $@ -c $<; + ${AM_VERBOSE_CC} ${CC} ${AM_DEPFLAGS} ${AM_CFLAGS} -D_INIT=lib$*_init -DPIC -fPIC ${CFLAGS} -o $@ -c $<; # @@ -115,7 +115,7 @@ lib%.oo: ${srcdir}/lib%.c # handling code in the Makefiles. # lib%.o: ${srcdir}/lib%.c - ${AM_VERBOSE_CC} ${CC} ${AM_DEPFLAGS} ${AM_CFLAGS} -DNO_SHARED_LIBS=1 -D_INIT=$*_init ${CFLAGS} -o $@ -c $<; + ${AM_VERBOSE_CC} ${CC} ${AM_DEPFLAGS} ${AM_CFLAGS} -DNO_SHARED_LIBS=1 -D_INIT=lib$*_init ${CFLAGS} -o $@ -c $<; libext4.a: initext4.o ${libext4_objs} ${AM_VERBOSE_AR} ${AR} crs $@ $^;