Skip to content

Commit 4dfffb1

Browse files
committed
Fix build when static linking
Also remove unnecessary rdynamic linker option.
1 parent e1e30fd commit 4dfffb1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

configure.ac

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ AC_ARG_ENABLE([backtrace],
806806
[enable_backtrace=check])
807807
AS_IF([test "x$enable_backtrace" != xno],
808808
[flag=:
809-
AS_IF([$flag], [AC_CHECK_LIB([c], [backtrace], [LIBS="-lc $LIBS"], [flag=false])])
809+
AS_IF([$flag], [AC_CHECK_LIB([c], [backtrace], [], [flag=false])])
810810
AS_IF([$flag],
811811
[AC_DEFINE(ENABLE_BACKTRACE, [], [Define to print a stack trace on Terminate.])
812812
enable_backtrace=yes],
@@ -901,12 +901,12 @@ if test "$my_test_LINKFLAGS" != set; then
901901
# On OS X Mavericks, -s option has a funny effect: though the linker
902902
# warns the option is obsolete and being ignored, it causes an internal
903903
# error "atom not found in symbolIndex...".
904-
LINKFLAGS=-rdynamic
904+
LINKFLAGS=
905905
elif test "x$enable_profile" != xno && test "x$enable_profile" != xunavailable; then
906906
# Profilers needs symbol tables.
907-
LINKFLAGS=-rdynamic
907+
LINKFLAGS=
908908
else
909-
LINKFLAGS=-rdynamic
909+
LINKFLAGS=
910910
fi
911911
fi
912912
my_test_DEBUGCOMPILEFLAGS=${DEBUGCOMPILEFLAGS+set}
@@ -977,7 +977,7 @@ if test "$my_test_DEBUGCOMPILEFLAGS" != set && test "x$enable_debug" = xyes; the
977977
fi
978978
my_test_DEBUGLINKFLAGS=${DEBUGLINKFLAGS+set}
979979
if test "$my_test_DEBUGLINKFLAGS" != set && test "x$enable_debug" = xyes; then
980-
DEBUGLINKFLAGS=-rdynamic
980+
DEBUGLINKFLAGS=
981981
if test "x$vendor" = xgnu; then
982982
# Coverage option.
983983
if test "x$enable_coverage" = xyes; then

0 commit comments

Comments
 (0)