]> granicus.if.org Git - pdns/commitdiff
Fix semistatic building
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 29 Dec 2014 16:10:32 +0000 (17:10 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 29 Dec 2014 16:23:46 +0000 (17:23 +0100)
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.

configure.ac

index 4c85563b4d31df4134ad7114e33aeeab8a7bb074..f8a3c0793c2af39af7703f25ae5bb09b7e796a75 100644 (file)
@@ -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)