summaryrefslogtreecommitdiff
path: root/libgo/configure.ac
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2014-01-22 19:10:47 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2014-01-22 19:10:47 +0000
commit7dc947bde96b398e316b7f3bd78e58efb830bfd8 (patch)
treef9c96f893e32f759265ebb39bc2f07e1c50b8656 /libgo/configure.ac
parent2a3e9d6817a20e4f50e130a4f832a67d49c6b6c5 (diff)
downloadgcc-7dc947bde96b398e316b7f3bd78e58efb830bfd8.tar.gz
libgo/configure: Test for gold with gccgo -Wl,--help, not ld --help.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206937 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/configure.ac')
-rw-r--r--libgo/configure.ac6
1 files changed, 3 insertions, 3 deletions
diff --git a/libgo/configure.ac b/libgo/configure.ac
index dc1f9082a0a..7063e2d162f 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])