diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2004-12-15 23:50:26 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2004-12-15 15:50:26 -0800 |
commit | 7e9d851708222dd015037a2d7240b58435ac921b (patch) | |
tree | ac4b87cfedeee7a5a423ccc6c144c8184c92684a /gcc/gcc.c | |
parent | 19fabfe02e374c9c1fa4a7481d5e708a4f5bacbe (diff) | |
download | gcc-7e9d851708222dd015037a2d7240b58435ac921b.zip gcc-7e9d851708222dd015037a2d7240b58435ac921b.tar.gz gcc-7e9d851708222dd015037a2d7240b58435ac921b.tar.bz2 |
re PR target/18153 (-static-libgcc links in libunwind.so.7)
2004-12-15 H.J. Lu <hongjiu.lu@intel.com>
PR target/18153
* configure.ac: Define HAVE_LD_STATIC_DYNAMIC if linker supports
-Bstatic/-Bdynamic option.
* config.in: Regenerated.
* configure: Likewise.
* gcc.c (init_spec): Pass -Bstatic/-Bdynamic to ld for static
-lunwind if possible.
From-SVN: r92229
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1715,7 +1715,11 @@ init_spec (void) "-lgcc", "-lgcc_eh" #ifdef USE_LIBUNWIND_EXCEPTIONS +# ifdef HAVE_LD_STATIC_DYNAMIC + " %{!static:-Bstatic} -lunwind %{!static:-Bdynamic}" +# else " -lunwind" +# endif #endif ); |