gcc.c (init_spec): Add -lunwind to shared case too if USE_LIBUNWIND_EXCEPTIONS.
authorZack Weinberg <zack@gcc.gnu.org>
Wed, 31 Dec 2003 21:30:22 +0000 (21:30 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Wed, 31 Dec 2003 21:30:22 +0000 (21:30 +0000)
* gcc.c (init_spec): Add -lunwind to shared case too if
USE_LIBUNWIND_EXCEPTIONS.

From-SVN: r75276

gcc/ChangeLog
gcc/gcc.c

index 499ba1482ae01d1872441c54a2517b53646edd07..9b0ec54348dfd254243a861da63d3b22e705315f 100644 (file)
@@ -1,3 +1,8 @@
+2003-12-31  Zack Weinberg  <zack@codesourcery.com>
+
+       * gcc.c (init_spec): Add -lunwind to shared case too if
+       USE_LIBUNWIND_EXCEPTIONS.
+
 2003-12-31  Joseph S. Myers  <jsm@polyomino.org.uk>
 
        * doc/include/texinfo.tex: Update to version 2003-12-21.10.
 2003-12-25  Andrew Pinski  <pinskia@physics.uc.edu>
 
        PR C++/13429, C/11944
-       * c-common.c (c_build_qualified_type): Return early when type is 
+       * c-common.c (c_build_qualified_type): Return early when type is
        error_mark_node.
        (c_apply_type_quals_to_decl): Likewise.
 
index bc6d4c4235bc49ff815e265ca711974b16ab2509..27024fa9e4e537c8c4b462f47c632822a20c7d6e 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -1632,6 +1632,9 @@ init_spec (void)
                            "-lgcc_s"
 #else
                            "-lgcc_s%M"
+#endif
+#ifdef USE_LIBUNWIND_EXCEPTIONS
+                           " -lunwind"
 #endif
                            ,
                            "-lgcc",
@@ -1653,6 +1656,9 @@ init_spec (void)
                            "-lgcc_s"
 #else
                            "-lgcc_s%M"
+#endif
+#ifdef USE_LIBUNWIND_EXCEPTIONS
+                           " -lunwind"
 #endif
                            ,
                            "libgcc.a%s",