aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2004-12-15 23:50:26 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2004-12-15 15:50:26 -0800
commit7e9d851708222dd015037a2d7240b58435ac921b (patch)
treeac4b87cfedeee7a5a423ccc6c144c8184c92684a /gcc/gcc.c
parent19fabfe02e374c9c1fa4a7481d5e708a4f5bacbe (diff)
downloadgcc-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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 707ae33..27c3940 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -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
);