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:
parent
dc0fe34aa7
commit
fa3aaf6d8b
11
gnu/dist/gcc/config/netbsd.h
vendored
11
gnu/dist/gcc/config/netbsd.h
vendored
@ -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 */
|
||||
|
||||
|
11
gnu/dist/toolchain/gcc/config/netbsd.h
vendored
11
gnu/dist/toolchain/gcc/config/netbsd.h
vendored
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user