Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5607 :
authormorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 9 Aug 2011 19:49:08 +0000 (19:49 +0000)
committermorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 9 Aug 2011 19:49:08 +0000 (19:49 +0000)
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.)

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38434 f5534014-38df-0310-8fa8-9805f1628bb7

acinclude.m4

index e41f70a4b08c9508c92b10b16ffb2c741a1776b3..5898b14f1a8218356b93491adf34df42f7c4f21a 100644 (file)
@@ -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([[