From 71cef14ac3de07e4fed0a2903b1f0f639406ec6c Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 6 May 2011 19:30:59 -0400 Subject: [PATCH] Add -Bsymbolic-functions to linker flags --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index bb259506a..2eb6c11a0 100644 --- a/configure.ac +++ b/configure.ac @@ -41,6 +41,9 @@ AC_CHECK_HEADERS(unistd.h sys/mman.h) AC_CANONICAL_HOST if test "x$GCC" = "xyes"; then + # Make symbols link locally + LDFLAGS="$LDFLAGS -Bsymbolic-functions" + # Make sure we don't link to libstdc++ CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions"