Commit 0896d088 authored by Tiago Peixoto's avatar Tiago Peixoto

Properly fix problem with libtool and libstdc++ linkage

Make sure libtool is properly modified, by doing it last in
configure.ac.
parent 9b12a427
......@@ -35,13 +35,6 @@ AC_DISABLE_STATIC
AC_PROG_LIBTOOL
AC_PROG_INSTALL
# ugly, dirty, smelly hack to force libtool to link to libstc++ before anything
# else, to avoid strange exception-related segfaults in
# __cxa_allocate_exception() see:
# http://www.nabble.com/preventing-boost::python::throw_error_already_set-td20958723.html
libtool=`cat libtool | sed "s/-nostdlib/-nostdlib -lstdc++/"`
echo "$libtool" > libtool
dnl turn on warnings
[CPPFLAGS="${CPPFLAGS} -Wall"]
......@@ -301,3 +294,11 @@ src/graph/misc/Makefile
src/graph_tool/Makefile
])
# ugly, dirty, smelly hack to force libtool to link to libstc++ before anything
# else, to avoid strange exception-related segfaults in
# __cxa_allocate_exception() see:
# http://www.nabble.com/preventing-boost::python::throw_error_already_set-td20958723.html
# http://wiki.fifengine.de/Segfault_in_cxa_allocate_exception
AC_MSG_NOTICE([Modifying libtool to correctly link libstdc++ before anything else...])
libtool=`cat libtool | sed "s/-nostdlib/-nostdlib -lstdc++/g"`
echo "$libtool" > libtool
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment