diff options
author | Moritz 'Morty' StrĂ¼be <morty@gmx.net> | 2015-10-20 14:04:10 +0200 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2015-12-13 23:48:25 +0000 |
commit | 240a73906d841e4dd823a9edbb25026d346add41 (patch) | |
tree | 47e9b3685609af28b797447f162b8eeaa1ea2d2d /infrastructure | |
parent | b0b213fe8f8527c5e818c5416751cfc83cbce53e (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')
-rw-r--r-- | infrastructure/m4/boxbackup_tests.m4 | 3 |
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]])]) |