mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-07 21:25:12 +02:00
build: link to libxtables_LIBS
This should make AutoReqProv (or equivalent) do the dependencies instead of manually having to specify it.
This commit is contained in:
@@ -11,6 +11,7 @@ CCLD = ${CC}
|
|||||||
|
|
||||||
regular_CFLAGS = @regular_CFLAGS@
|
regular_CFLAGS = @regular_CFLAGS@
|
||||||
libxtables_CFLAGS = @libxtables_CFLAGS@
|
libxtables_CFLAGS = @libxtables_CFLAGS@
|
||||||
|
libxtables_LIBS = @libxtables_LIBS@
|
||||||
AM_CFLAGS = ${regular_CFLAGS} ${libxtables_CFLAGS}
|
AM_CFLAGS = ${regular_CFLAGS} ${libxtables_CFLAGS}
|
||||||
AM_DEPFLAGS = -Wp,-MMD,$(@D)/.$(@F).d,-MT,$@
|
AM_DEPFLAGS = -Wp,-MMD,$(@D)/.$(@F).d,-MT,$@
|
||||||
|
|
||||||
@@ -53,7 +54,7 @@ clean:
|
|||||||
rm -f *.oo *.so;
|
rm -f *.oo *.so;
|
||||||
|
|
||||||
lib%.so: lib%.oo
|
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
|
%.oo: ${XA_SRCDIR}/%.c
|
||||||
${AM_V_CC}${CC} ${AM_DEPFLAGS} ${AM_CFLAGS} -DPIC -fPIC ${CFLAGS} -o $@ -c $<;
|
${AM_V_CC}${CC} ${AM_DEPFLAGS} ${AM_CFLAGS} -DPIC -fPIC ${CFLAGS} -o $@ -c $<;
|
||||||
|
Reference in New Issue
Block a user