diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-06-02 17:39:39 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-06-02 17:39:39 +0000 |
commit | 477b521a56e0c2021fca91896f571318d10f1270 (patch) | |
tree | ec75c6dbfc74fe667063d8f58c67ead1f5d64829 /gcc/configure.ac | |
parent | de1cc6fb24020bcb767bf833e938677d2269fc0e (diff) | |
download | gcc-477b521a56e0c2021fca91896f571318d10f1270.tar.gz |
* configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
linker emulations.
* configure: Regenerate.
* config.in: Regenerate.
* config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
(X86_64_EMULATION): Define.
(TARGET_LD_EMULATION): Use them.
* config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
(SPARC64_EMULATION): Define.
(LINK_ARCH_SPEC): Use them.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160178 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure.ac')
-rw-r--r-- | gcc/configure.ac | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gcc/configure.ac b/gcc/configure.ac index 06770333a99..27cb45c9a9d 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -4034,6 +4034,29 @@ if test x"$enable_linker_build_id" = xyes; then fi fi +# In binutils 2.21, GNU ld gained support for new emulations fully +# supporting the Solaris 2 ABI. Detect their presence in the linker used. +AC_CACHE_CHECK(linker *_sol2 emulation support, + gcc_cv_ld_sol2_emulation, + [gcc_cv_ld_sol2_emulation=no + if test $in_tree_ld = yes ; then + if test "$gcc_cv_gld_major_version" -eq 2 -a \ + "$gcc_cv_gld_minor_version" -ge 21 -o \ + "$gcc_cv_gld_major_version" -gt 2 \ + && test $in_tree_ld_is_elf = yes; then + gcc_cv_ld_sol2_emulation=yes + fi + elif test x$gcc_cv_ld != x; then + if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \ + grep _sol2 > /dev/null; then + gcc_cv_ld_sol2_emulation=yes + fi + fi]) +if test x"$gcc_cv_ld_sol2_emulation" = xyes; then + AC_DEFINE(HAVE_LD_SOL2_EMULATION, 1, + [Define if your linker supports the *_sol2 emulations.]) +fi + AC_CACHE_CHECK(linker --sysroot support, gcc_cv_ld_sysroot, [gcc_cv_ld_sysroot=no |