[glom] Fix boost:python m4 macro with -Wl,--as-needed
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Fix boost:python m4 macro with -Wl,--as-needed
- Date: Wed, 7 Apr 2010 09:50:49 +0000 (UTC)
commit f282b87bd5459a8f478fff69b711a415f7c20a4b
Author: David King <davidk openismus com>
Date: Wed Apr 7 11:46:59 2010 +0200
Fix boost:python m4 macro with -Wl,--as-needed
* macros/ax_boost_python_murrayc.m4: Specify libraries in LIBS, not
LDFLAGS. See http://www.gentoo.org/proj/en/qa/asneeded.xml
ChangeLog | 7 +++++++
macros/ax_boost_python_murrayc.m4 | 6 +++---
2 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 4d10d84..0605e0a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-04-07 David King <davidk openismus com>
+
+ Fix boost:python m4 macro with -Wl,--as-needed
+
+ * macros/ax_boost_python_murrayc.m4: Specify libraries in LIBS, not
+ LDFLAGS. See http://www.gentoo.org/proj/en/qa/asneeded.xml
+
2010-04-06 Daniel Borgmann <danielb openismus com>
Dialog adjustments.
diff --git a/macros/ax_boost_python_murrayc.m4 b/macros/ax_boost_python_murrayc.m4
index 5e36369..88e6f28 100644
--- a/macros/ax_boost_python_murrayc.m4
+++ b/macros/ax_boost_python_murrayc.m4
@@ -97,14 +97,14 @@ if test "$ac_cv_boost_python" = "yes"; then
#Note that this requires PYTHON_CPPFLAGS and PYTHON_LIBS from MM_CHECK_MODULE_PYTHON()
SAVED_CPPFLAGS=$CPPFLAGS
CPPFLAGS=$PYTHON_CPPFLAGS $CPPFLAGS
- SAVED_LDFLAGS=$LDFLAGS
- LDFLAGS="$LDFLAGS $PYTHON_LIBS -l$ax_lib"
+ SAVED_LIBS=$LIBS
+ LIBS="$LIBS $PYTHON_LIBS -l$ax_lib"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([#include <boost/python.hpp>],
[boost::python::object test_object])],
#Note that this was previously BOOST_PYTHON_LIB, but I renamed it because people expect *LIBS. murrayc.
[BOOST_PYTHON_LIBS="-l$ax_lib"])
- LDFLAGS=$SAVED_LDFLAGS
+ LIBS=$SAVED_LIBS
CPPFLAGS=$SAVED_CPPFLAGS
AC_LANG_RESTORE
done
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]