diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2013-04-15 10:31:57 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2013-04-15 10:31:57 +0000 |
commit | e927b6ad355c068ce2030bdec5a23db8d7a41496 (patch) | |
tree | c14f024bbdb6a514a3b90e6bfd980a6fc278ed5a /gcc/gcc.c | |
parent | e0ea8797bb997ccc5ab228580498dfe2b727dcef (diff) | |
download | gcc-e927b6ad355c068ce2030bdec5a23db8d7a41496.zip gcc-e927b6ad355c068ce2030bdec5a23db8d7a41496.tar.gz gcc-e927b6ad355c068ce2030bdec5a23db8d7a41496.tar.bz2 |
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.
From-SVN: r197964
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1361,7 +1361,8 @@ init_gcc_specs (struct obstack *obstack, const char *shared_name, "%{!static:%{!static-libgcc:" #if USE_LD_AS_NEEDED "%{!shared-libgcc:", - static_name, " --as-needed ", shared_name, " --no-as-needed" + static_name, " " LD_AS_NEEDED_OPTION " ", + shared_name, " " LD_NO_AS_NEEDED_OPTION "}" "%{shared-libgcc:", shared_name, "%{!shared: ", static_name, "}" |