1 From 11e8a1034656eba6571401286b99dabbd9842dac Mon Sep 17 00:00:00 2001
2 From: Jan Engelhardt <jengelh@inai.de>
3 Date: Tue, 18 Dec 2012 09:18:45 -0800
4 Subject: [PATCH] build: unbreak linakge of m_xt.so
6 Commit v3.7.0~10 caused the variable new PKG_CONFIG variable never
7 to be present at the time of calling make, leading to tc/m_xt.so
8 not linked with -lxtables (result from pkg-config xtables --libs),
9 that in turn leading to
11 tc: symbol lookup error: /usr/lib64/tc//m_xt.so: undefined symbol:
16 Signed-off-by: Jan Engelhardt <jengelh@inai.de>
21 configure | 14 +++++++++++---
22 1 file changed, 11 insertions(+), 3 deletions(-)
27 # This is not an autconf generated configure
29 INCLUDE=${1:-"$PWD/include"}
30 -: ${PKG_CONFIG:=pkg-config}
32 -echo "PKG_CONFIG:=${PKG_CONFIG}" >>Config
34 # Make a temp directory in build tree.
35 TMPDIR=$(mktemp -d config.XXXXXX)
36 trap 'status=$?; rm -rf $TMPDIR; exit $status' EXIT HUP INT QUIT TERM
40 +: ${PKG_CONFIG:=pkg-config}
43 +echo "AR:=${AR}" >>Config
44 +echo "CC:=${CC}" >>Config
49 cat >$TMPDIR/atmtest.c <<EOF
50 @@ -224,6 +230,8 @@ rm -f $TMPDIR/ipsettest.c $TMPDIR/ipsett
53 echo "# Generated config based on" $INCLUDE >Config
54 +echo "PKG_CONFIG:=${PKG_CONFIG}" >>Config