summaryrefslogtreecommitdiff
path: root/gcc/configure
diff options
context:
space:
mode:
authorsje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>2010-01-08 21:54:37 +0000
committersje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>2010-01-08 21:54:37 +0000
commit2a1565791f8f8d01b9d80bd37c759f3cf3fd16ee (patch)
tree1c4268e5a2e7410d018f9ca9d3e41978eaaeb487 /gcc/configure
parentbeed70c3bb9f387b6fa933f1454a93b0d73afddd (diff)
downloadgcc-2a1565791f8f8d01b9d80bd37c759f3cf3fd16ee.tar.gz
2010-01-08 Steve Ellcey <sje@cup.hp.com>
PR target/37454 * configure.ac: Modify -rdynamic check. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155745 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure')
-rwxr-xr-xgcc/configure50
1 files changed, 15 insertions, 35 deletions
diff --git a/gcc/configure b/gcc/configure
index 4cb6cf77f8d..4a1fe5b75f2 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -25017,39 +25017,22 @@ fi
pluginlibs=
if test x"$enable_plugin" = x"yes"; then
- # Check that the host supports -rdynamic and -ldl
- have_rdynamic=no
- have_dl=no
- saved_LDFLAGS="$LDFLAGS"
- saved_LIBS="$LIBS"
- LIBS=
-
- # Check -rdynamic
- LDFLAGS="$LDFLAGS -rdynamic"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
-$as_echo_n "checking for -rdynamic... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-int
-main ()
-{
-return 0;
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }; have_rdynamic=yes
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- if test x"$have_rdynamic" = x"yes" ; then
- pluginlibs="-rdynamic"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
+$as_echo_n "checking for exported symbols... " >&6; }
+ echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
+ ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
+ if $gcc_cv_objdump -T conftest | grep foobar > /dev/null; then
+ : # No need to use a flag
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
+$as_echo_n "checking for -rdynamic... " >&6; }
+ ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
+ if $gcc_cv_objdump -T conftest | grep foobar > /dev/null; then
+ pluginlibs="-rdynamic"
+ else
+ enable_plugin=no
+ fi
fi
# Check -ldl
@@ -25150,9 +25133,6 @@ Building GCC with plugin support requires a host that supports
-fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
fi
fi
-
- LDFLAGS="$saved_LDFLAGS"
- LIBS="$saved_LIBS"
fi