diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-18 22:43:21 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-18 22:43:21 +0000 |
commit | 026dfcc8ac5d1c4c97d14fca02f6884e9826ce6a (patch) | |
tree | 6d5f68ac924eab8761a9f4aa47be2a1322220e6f | |
parent | 1f2a835ee6c79fae0e50c226a2dba72b7f2cf462 (diff) | |
download | gcc-026dfcc8ac5d1c4c97d14fca02f6884e9826ce6a.tar.gz |
PR bootstrap/14992
* gcc.c (init_gcc_specs): Only honor HAVE_LD_AS_NEEDED on
GNU/Linux.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-3_4-branch@80827 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/gcc.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e369a7d52b6..a0d401765f2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2004-04-18 Mark Mitchell <mark@codesourcery.com> + PR bootstrap/14992 + * gcc.c (init_gcc_specs): Only honor HAVE_LD_AS_NEEDED on + GNU/Linux. + * doc/extend.texi (Strong Using): Warn users against using this feature. diff --git a/gcc/gcc.c b/gcc/gcc.c index c9af5d92851..04d56d73802 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -1531,7 +1531,7 @@ init_gcc_specs (struct obstack *obstack, const char *shared_name, buf = concat ("%{static|static-libgcc:", static_name, " ", eh_name, "}%{!static:%{!static-libgcc:", -#ifdef HAVE_LD_AS_NEEDED +#if defined(__linux__) && defined(HAVE_LD_AS_NEEDED) "%{!shared-libgcc:", static_name, " --as-needed ", shared_name, " --no-as-needed}" "%{shared-libgcc:", shared_name, "%{!shared: ", static_name, |