re PR target/37454 (gcc: unrecognized option '-rdynamic')

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
This commit is contained in:
Steve Ellcey 2010-01-10 20:23:08 +00:00 committed by Steve Ellcey
parent ab996409bc
commit 30ce157e6d
3 changed files with 14 additions and 0 deletions

View 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

4
gcc/configure vendored
View File

@ -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 :
@ -25095,8 +25096,10 @@ fi
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

View 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