summaryrefslogtreecommitdiff
path: root/infrastructure/m4/boxbackup_tests.m4
diff options
context:
space:
mode:
authorMoritz 'Morty' Strübe <morty@gmx.net>2015-10-20 14:04:10 +0200
committerMoritz 'Morty' Strübe <morty@gmx.net>2015-10-21 08:50:49 +0200
commit16ef537c61758406d6f83291f0c166400f4c56c9 (patch)
tree13a877494c3d4f942ead4fc8015c30ee0ea0a632 /infrastructure/m4/boxbackup_tests.m4
parent46367032edd2a8a92ca159bd6ee865eb453b2f70 (diff)
Fix -rdynamic check
The flag -rdynamic must be removed from LDFLAGS after the check. Otherwise its also set for the following checks and they fail.
Diffstat (limited to 'infrastructure/m4/boxbackup_tests.m4')
-rw-r--r--infrastructure/m4/boxbackup_tests.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/infrastructure/m4/boxbackup_tests.m4 b/infrastructure/m4/boxbackup_tests.m4
index 091eb67f..09d73e04 100644
--- a/infrastructure/m4/boxbackup_tests.m4
+++ b/infrastructure/m4/boxbackup_tests.m4
@@ -25,6 +25,7 @@ if test "x$GXX" = "xyes"; then
# [http://readlist.com/lists/gcc.gnu.org/gcc/6/31502.html]
# This is needed to get symbols in backtraces.
# Note that this apparently fails on HP-UX and Solaris
+ save_LDFLAGS=$LDFLAGS
LDFLAGS="$LDFLAGS -rdynamic"
AC_MSG_CHECKING([whether gcc accepts -rdynamic])
AC_TRY_LINK([], [return 0;],
@@ -33,8 +34,10 @@ if test "x$GXX" = "xyes"; then
if test x"$have_rdynamic" = x"yes" ; then
AC_SUBST([LDADD_RDYNAMIC], ['-rdynamic'])
fi
+ LDFLAGS=$save_LDFLAGS
;;
esac
+
fi
AC_PATH_PROG([PERL], [perl], [AC_MSG_ERROR([[perl executable was not found]])])