gcc.c (init_gcc_specs): If HAVE_LD_AS_NEEDED, link with -lgcc --as-needed -lgcc_s...
authorAlan Modra <amodra@bigpond.net.au>
Thu, 1 Apr 2004 16:45:34 +0000 (16:45 +0000)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 1 Apr 2004 16:45:34 +0000 (18:45 +0200)
commit765f1bf9e4451e97ccfba21bc2d9dcee8580fb31
tree1a3ce88b8909a989116b51749ef3a5f061786ed7
parent45dcc026e55601992454c81ff5c171a58a5ac4b9
gcc.c (init_gcc_specs): If HAVE_LD_AS_NEEDED, link with -lgcc --as-needed -lgcc_s --no-as-needed by default.

* gcc.c (init_gcc_specs): If HAVE_LD_AS_NEEDED, link with
-lgcc --as-needed -lgcc_s --no-as-needed by default.
* configure.ac (HAVE_LD_AS_NEEDED): Check for ld --as-needed.
* configure: Rebuilt.
* config.in: Rebuilt.
* Makefile.in (stage1-start): Copy also libgcc_s*$(SHLIB_EXT).
(stage2-start, stage3-start, stage4-start): Likewise.
(stageprofile-start, stagefeedback-start): Likewise.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r80302
gcc/ChangeLog
gcc/Makefile.in
gcc/config.in
gcc/configure
gcc/configure.ac
gcc/gcc.c