]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libgo/configure: Test for gold with gccgo -Wl,--help, not ld --help.
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 22 Jan 2014 19:10:47 +0000 (19:10 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 22 Jan 2014 19:10:47 +0000 (19:10 +0000)
From-SVN: r206937

libgo/configure
libgo/configure.ac

index a5439ebd84879570e54fe598344b7a406a956742..c55212042c648452d8e9d63a401e33f33edc2ccc 100755 (executable)
@@ -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
index dc1f9082a0a1f0adf7278dd3120e4aaf19f751a8..7063e2d162f7aa04e915f22a9f8b322d9aa43654 100644 (file)
@@ -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])