Commit 30ce157e by Steve Ellcey Committed by Steve Ellcey

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
parent ab996409
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
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment