From 655ae6b096b7ba3854159dc1eefadce91ec65550 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 13 Sep 2010 16:06:50 +0200 Subject: libiptc: build with -Wl,--no-as-needed Since libiptc does not reference any symbols in libip(4|6)tc, the linker may ignore the dependencies. Use --no-as-needed to explicitly force a DT_NEEDED entry. References: http://bugzilla.netfilter.org/show_bug.cgi?id=674 Signed-off-by: Jan Engelhardt --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 3b26f548..6010afd6 100644 --- a/configure.ac +++ b/configure.ac @@ -52,6 +52,11 @@ AC_ARG_WITH([pkgconfigdir], AS_HELP_STRING([--with-pkgconfigdir=PATH], [Path to the pkgconfig directory [[LIBDIR/pkgconfig]]]), [pkgconfigdir="$withval"], [pkgconfigdir='${libdir}/pkgconfig']) +libiptc_LDFLAGS2=""; +AX_CHECK_LINKER_FLAGS([-Wl,--no-as-needed], + [libiptc_LDFLAGS2="-Wl,--no-as-needed"]) +AC_SUBST([libiptc_LDFLAGS2]) + blacklist_modules=""; AC_CHECK_HEADER([linux/dccp.h]) -- cgit v1.2.3