aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2014-01-22 19:10:47 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2014-01-22 19:10:47 +0000
commitf56c5dd19cd580a5d25cd8a21340cc6d1742becb (patch)
treef9c96f893e32f759265ebb39bc2f07e1c50b8656
parent88d7c4b9c3c34d298d0650191ed04706d9dc723b (diff)
downloadgcc-f56c5dd19cd580a5d25cd8a21340cc6d1742becb.zip
gcc-f56c5dd19cd580a5d25cd8a21340cc6d1742becb.tar.gz
gcc-f56c5dd19cd580a5d25cd8a21340cc6d1742becb.tar.bz2
libgo/configure: Test for gold with gccgo -Wl,--help, not ld --help.
From-SVN: r206937
-rwxr-xr-xlibgo/configure2
-rw-r--r--libgo/configure.ac6
2 files changed, 4 insertions, 4 deletions
diff --git a/libgo/configure b/libgo/configure
index a5439eb..c552120 100755
--- a/libgo/configure
+++ b/libgo/configure
@@ -13948,7 +13948,7 @@ if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
$as_echo_n "(cached) " >&6
else
libgo_cv_c_linker_supports_split_stack=no
-if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
+if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
libgo_cv_c_linker_supports_split_stack=yes
fi
fi
diff --git a/libgo/configure.ac b/libgo/configure.ac
index dc1f908..7063e2d 100644
--- a/libgo/configure.ac
+++ b/libgo/configure.ac
@@ -357,10 +357,10 @@ dnl possible for the linker to support this for some targets but not
dnl others.
AC_CACHE_CHECK([whether linker supports split stack],
[libgo_cv_c_linker_supports_split_stack],
-libgo_cv_c_linker_supports_split_stack=no
-if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
+[libgo_cv_c_linker_supports_split_stack=no
+if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
libgo_cv_c_linker_supports_split_stack=yes
-fi)
+fi])
if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
AC_DEFINE(LINKER_SUPPORTS_SPLIT_STACK, 1,
[Define if the linker support split stack adjustments])