Correct last commit.
authorIan Lance Taylor <ian@airs.com>
Sat, 2 Jul 2011 00:31:35 +0000 (00:31 +0000)
committerIan Lance Taylor <ian@airs.com>
Sat, 2 Jul 2011 00:31:35 +0000 (00:31 +0000)
gold/configure
gold/configure.ac

index 66c9d824821bd5d77973f5d4629a3d7aa34a8cef..b88222380060c7c81951ce5f3d20d273bfdf46a1 100755 (executable)
@@ -6132,6 +6132,7 @@ else
 fi
 rm -f core conftest.err conftest.$ac_objext \
     conftest$ac_exeext conftest.$ac_ext
+LDFLAGS=$LDFLAGS_hold
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_static" >&5
 $as_echo "$gold_cv_lib_static" >&6; }
index 47120b45bba1a66586e63a819622b4ef152634cd..949c8c3b106364f2b13a60b4e5da86b7b6c75c15 100644 (file)
@@ -265,11 +265,12 @@ dnl Test for whether static linking is supported.  Some systems do not
 dnl install static libraries.  This only affects the set of tests that
 dnl we run.
 AC_CACHE_CHECK([whether static linking works], [gold_cv_lib_static],
-LDFLAGS_hold=$LDFLAGS
+[LDFLAGS_hold=$LDFLAGS
 LDFLAGS="$LDFLAGS -static"
-[AC_LINK_IFELSE([
+AC_LINK_IFELSE([
 AC_LANG_PROGRAM([[void f() { }]])],
-[gold_cv_lib_static=yes], [gold_cv_lib_static=no])])
+[gold_cv_lib_static=yes], [gold_cv_lib_static=no])
+LDFLAGS=$LDFLAGS_hold])
 AM_CONDITIONAL(HAVE_STATIC, test "$gold_cv_lib_static" = "yes")
 
 dnl Some architectures do not support taking pointers of functions