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.
This commit is contained in:
mycroft 2000-10-23 13:19:35 +00:00
parent dc0fe34aa7
commit fa3aaf6d8b
2 changed files with 18 additions and 4 deletions

View File

@ -49,12 +49,19 @@
/* Provide a LIB_SPEC appropriate for NetBSD. Just select the appropriate /* Provide a LIB_SPEC appropriate for NetBSD. Just select the appropriate
libc, depending on whether we're doing profiling; if `-posix' is specified, 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 #undef LIB_SPEC
#define LIB_SPEC \ #define LIB_SPEC \
"%{posix:%{!p:%{!pg:-lposix}}%{p:-lposix_p}%{pg:-lposix_p}} \ "%{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 */ /* #ifdef NETBSD_AOUT */

View File

@ -49,12 +49,19 @@
/* Provide a LIB_SPEC appropriate for NetBSD. Just select the appropriate /* Provide a LIB_SPEC appropriate for NetBSD. Just select the appropriate
libc, depending on whether we're doing profiling; if `-posix' is specified, 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 #undef LIB_SPEC
#define LIB_SPEC \ #define LIB_SPEC \
"%{posix:%{!p:%{!pg:-lposix}}%{p:-lposix_p}%{pg:-lposix_p}} \ "%{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 */ /* #ifdef NETBSD_AOUT */