From: Ruben Kerkhof Date: Mon, 29 Dec 2014 16:10:32 +0000 (+0100) Subject: Fix semistatic building X-Git-Tag: rec-3.7.0-rc1~67^2~13^2~18^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a4422e04ea6b3ad9ac0aff8111fc04b9505178dd;p=pdns Fix semistatic building 5e71d414cfc6 added BOOST_LDFLAGS to the front of LDFLAGS. A side effect of this change is that this adds -L/usr/lib at the front of the linker search path, where normally it is last. We then try to link to /usr/lib/libpq.a but that's a different version than the one we need. As a workaround place the BOOST_LDFLAGS after LDFLAGS. The correct fix needs more thought. --- diff --git a/configure.ac b/configure.ac index 4c85563b4..f8a3c0793 100644 --- a/configure.ac +++ b/configure.ac @@ -319,7 +319,7 @@ done CFLAGS="$PIE_CFLAGS $CFLAGS" CXXFLAGS="$PIE_CFLAGS $CXXFLAGS" -LDFLAGS="$RELRO_LDFLAGS $BOOST_LDFLAGS $LDFLAGS" +LDFLAGS="$RELRO_LDFLAGS $LDFLAGS $BOOST_LDFLAGS" AC_SUBST(LIBS)