Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
0896d088
Commit
0896d088
authored
Feb 21, 2009
by
Tiago Peixoto
Browse files
Properly fix problem with libtool and libstdc++ linkage
Make sure libtool is properly modified, by doing it last in configure.ac.
parent
9b12a427
Changes
1
Show whitespace changes
Inline
Side-by-side
configure.ac
View file @
0896d088
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment