diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-01-22 19:10:47 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-01-22 19:10:47 +0000 |
commit | 7dc947bde96b398e316b7f3bd78e58efb830bfd8 (patch) | |
tree | f9c96f893e32f759265ebb39bc2f07e1c50b8656 /libgo/configure.ac | |
parent | 2a3e9d6817a20e4f50e130a4f832a67d49c6b6c5 (diff) | |
download | gcc-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.ac | 6 |
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]) |