diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-04-15 10:31:57 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-04-15 10:31:57 +0000 |
commit | 8aaed91dfc5f8fcd17fd6b61de3a6d68e59b5e1e (patch) | |
tree | c14f024bbdb6a514a3b90e6bfd980a6fc278ed5a /gcc/config/sol2.h | |
parent | 98c0d6572c62b325c1e8635df3d6b22003b83619 (diff) | |
download | gcc-8aaed91dfc5f8fcd17fd6b61de3a6d68e59b5e1e.tar.gz |
Use -z ignore instead of --as-needed on Solaris
* configure.ac (gcc_cv_ld_as_needed): Set
gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
Use -z ignore, -z record on *-*-solaris2*.
(HAVE_LD_AS_NEEDED): Update comment.
(LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
* configure: Regenerate.
* config.in: Regenerate.
* gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
* config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
* doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
equivalents. Fix markup.
* doc/tm.texi: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197964 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/sol2.h')
-rw-r--r-- | gcc/config/sol2.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/config/sol2.h b/gcc/config/sol2.h index 23a5bf51770..4c9b334e7a7 100644 --- a/gcc/config/sol2.h +++ b/gcc/config/sol2.h @@ -181,6 +181,11 @@ along with GCC; see the file COPYING3. If not see %(link_arch) \ %{Qy:} %{!Qn:-Qy}" +/* Use --as-needed/-z ignore -lgcc_s for eh support. */ +#ifdef HAVE_LD_AS_NEEDED +#define USE_LD_AS_NEEDED 1 +#endif + #ifdef USE_GLD /* Solaris 11 build 135+ implements dl_iterate_phdr. GNU ld needs --eh-frame-hdr to create the required .eh_frame_hdr sections. */ |