Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/gnu/dist/gcc/config Pullup 1.12 [mycroft]:



details:   https://anonhg.NetBSD.org/src/rev/5d6b0dbd032a
branches:  netbsd-1-5
changeset: 489991:5d6b0dbd032a
user:      tv <tv%NetBSD.org@localhost>
date:      Wed Oct 25 17:11:32 2000 +0000

description:
Pullup 1.12 [mycroft]:
Modify LIB_SPEC and LIBGCC_SPEC so that -lc and -lgcc are not included when
-shared or -symbolic (as on other platforms).  Also, override LIBGCC_SPEC for
all platforms (where it would incorrectly include the .a file explicitly on
some).
This should fix Mozilla on macppc.

diffstat:

 gnu/dist/gcc/config/netbsd.h |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r 7a50da947bd2 -r 5d6b0dbd032a gnu/dist/gcc/config/netbsd.h
--- a/gnu/dist/gcc/config/netbsd.h      Wed Oct 25 16:38:55 2000 +0000
+++ b/gnu/dist/gcc/config/netbsd.h      Wed Oct 25 17:11:32 2000 +0000
@@ -49,12 +49,19 @@
 
 /* Provide a LIB_SPEC appropriate for NetBSD.  Just select the appropriate
    libc, depending on whether we're doing profiling; if `-posix' is specified,
-   link against the appropriate libposix first.  */
+   link against the appropriate libposix first.  Don't include libc when
+   linking a shared library.  */
 
 #undef LIB_SPEC
 #define LIB_SPEC                                                       \
   "%{posix:%{!p:%{!pg:-lposix}}%{p:-lposix_p}%{pg:-lposix_p}}          \
-   %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
+   %{!shared:%{!symbolic:%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}}}"
+
+/* Provide a LIBGCC_SPEC appropriate for NetBSD.  We also want to exclude
+   libgcc when -symbolic.  */
+
+#undef  LIBGCC_SPEC
+#define LIBGCC_SPEC "%{!shared:%{!symbolic:-lgcc}}"
 
 /* #ifdef NETBSD_AOUT */
 



Home | Main Index | Thread Index | Old Index