aboutsummaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2011-08-09 19:49:08 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2011-08-09 19:49:08 +0000
commit3ba6316a064883c168cfd2bc777b67b18e7f2e9a (patch)
tree49402ea6d004e90494cb0c62c911082b2e8d9d8e /acinclude.m4
parentb74ac5f4c735ee86e2aeb3fd0fad125e07a84d0b (diff)
Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5607 :
When testing if we can add things to LDFLAGS, don't set LDFLAGS to CFLAGS if the test determines that the flag cannot be added to LDFLAGS. (Simple typo: LDFLAGS_saved was being set to CFLAGS instead of LDFLAGS.) svn path=/trunk/; revision=38434
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index e41f70a4b0..5898b14f1a 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -1668,7 +1668,7 @@ AC_DEFUN([AC_WIRESHARK_LDFLAGS_CHECK],
[GCC_OPTION="$1"
AC_MSG_CHECKING(whether we can add $GCC_OPTION to LDFLAGS)
if test "x$ac_supports_W_linker_passthrough" = "xyes"; then
- LDFLAGS_saved="$CFLAGS"
+ LDFLAGS_saved="$LDFLAGS"
LDFLAGS="$LDFLAGS $GCC_OPTION"
AC_LINK_IFELSE([
AC_LANG_SOURCE([[