aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/sol2.h
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2017-06-22 06:54:04 +0000
committerRainer Orth <ro@gcc.gnu.org>2017-06-22 06:54:04 +0000
commit8dc877ebc405937c7026f8fa7632b23e1f6ebccb (patch)
treebdecf810e54179f0df4a028886bef5312a1a2078 /gcc/config/sol2.h
parentc83c219a6359e2ab655e7b8a7fabe829fd7bc6b9 (diff)
downloadgcc-8dc877ebc405937c7026f8fa7632b23e1f6ebccb.zip
gcc-8dc877ebc405937c7026f8fa7632b23e1f6ebccb.tar.gz
gcc-8dc877ebc405937c7026f8fa7632b23e1f6ebccb.tar.bz2
Support --sysroot with Solaris ld
* configure.ac (gcc_cv_ld_static_dynamic): Also check stderr for $gcc_cv_ld --help output. (gcc_cv_ld_demangle): Likewise. (gcc_cv_ld_eh_frame_hdr): Likewise. (gcc_cv_ld_pie): Likewise. (gcc_cv_ld_as_needed): Likewise. Prefer native forms unless $gnu_ld. (gcc_cv_ld_buildid): Likewise. (gcc_cv_ld_sysroot): Likewise. (ld_bndplt_support): Likewise. (ld_pushpopstate_support): Likewise. * configure: Regenerate. * config/sol2.h [!USE_GLD] (SYSROOT_SPEC): Define. From-SVN: r249496
Diffstat (limited to 'gcc/config/sol2.h')
-rw-r--r--gcc/config/sol2.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/config/sol2.h b/gcc/config/sol2.h
index 1ae7f9f..b8398d0 100644
--- a/gcc/config/sol2.h
+++ b/gcc/config/sol2.h
@@ -331,6 +331,11 @@ along with GCC; see the file COPYING3. If not see
#endif
#ifndef USE_GLD
+/* Prefer native form with Solaris ld. */
+#define SYSROOT_SPEC "-z sysroot=%R"
+#endif
+
+#ifndef USE_GLD
/* With Sun ld, use mapfile to enforce direct binding to libgcc_s unwinder. */
#define LINK_LIBGCC_MAPFILE_SPEC \
"%{shared|shared-libgcc:-M %slibgcc-unwind.map}"