]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/37454 (gcc: unrecognized option '-rdynamic')
authorSteve Ellcey <sje@cup.hp.com>
Sun, 10 Jan 2010 20:23:08 +0000 (20:23 +0000)
committerSteve Ellcey <sje@gcc.gnu.org>
Sun, 10 Jan 2010 20:23:08 +0000 (20:23 +0000)
2010-01-10  Steve Ellcey  <sje@cup.hp.com>

PR target/37454
* configure.ac: Save and restore LDFLAGS and LIBS
* configure: Regenerate.

From-SVN: r155792

gcc/ChangeLog
gcc/configure
gcc/configure.ac

index 8869f7fa9d6d242e65dc85606a465f8c5a14c880..708befd48bcd92d17f75baecfb03024913ccf0d9 100644 (file)
@@ -1,3 +1,9 @@
+2010-01-10  Steve Ellcey  <sje@cup.hp.com>
+
+       PR target/37454
+       * configure.ac: Save and restore LDFLAGS and LIBS
+       * configure: Regenerate.
+
 2010-01-10  Richard Guenther  <rguenther@suse.de>
 
        PR middle-end/42667
index 4a1fe5b75f22a7eb4885e947170df00533cafcb6..c150ee0d9b3e14e6dc83950c35865eab0b7196c6 100755 (executable)
@@ -25036,6 +25036,7 @@ $as_echo_n "checking for -rdynamic... " >&6; }
   fi
 
   # Check -ldl
+  saved_LIBS="$LIBS"
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
 $as_echo_n "checking for library containing dlopen... " >&6; }
 if test "${ac_cv_search_dlopen+set}" = set; then :
   if test x"$ac_cv_search_dlopen" = x"-ldl"; then
     pluginlibs="$pluginlibs -ldl"
   fi
+  LIBS="$saved_LIBS"
 
   # Check that we can build shared objects with -fPIC -shared
+  saved_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS -fPIC -shared"
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
 $as_echo_n "checking for -fPIC -shared... " >&6; }
@@ -25124,6 +25127,7 @@ rm -f core conftest.err conftest.$ac_objext \
     pluginlibs=
     enable_plugin=no
   fi
+  LDFLAGS="$saved_LDFLAGS"
 
   # If plugin support had been requested but not available, fail.
   if test x"$enable_plugin" = x"no" ; then
index ab1d7754b8f60769acd47926bbf219a959bd2094..e5d9baff592d3a52c8bfa902e64dd2da7eb045b9 100644 (file)
@@ -4314,12 +4314,15 @@ if test x"$enable_plugin" = x"yes"; then
   fi
 
   # Check -ldl
+  saved_LIBS="$LIBS"
   AC_SEARCH_LIBS([dlopen], [dl])
   if test x"$ac_cv_search_dlopen" = x"-ldl"; then
     pluginlibs="$pluginlibs -ldl"
   fi
+  LIBS="$saved_LIBS"
 
   # Check that we can build shared objects with -fPIC -shared
+  saved_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS -fPIC -shared"
   AC_MSG_CHECKING([for -fPIC -shared])
   AC_TRY_LINK(
@@ -4330,6 +4333,7 @@ if test x"$enable_plugin" = x"yes"; then
     pluginlibs=
     enable_plugin=no
   fi
+  LDFLAGS="$saved_LDFLAGS"
 
   # If plugin support had been requested but not available, fail.
   if test x"$enable_plugin" = x"no" ; then