Subject: -lgcc -lc in LIB_SPEC
To: Charles M. Hannum <email@example.com>
From: Todd Vierling <firstname.lastname@example.org>
Date: 10/23/2000 16:26:47
On Mon, 23 Oct 2000, Charles M. Hannum wrote:
: gnusrc/gnu/dist/gcc/config: netbsd.h
: gnusrc/gnu/dist/toolchain/gcc/config: netbsd.h
: Log Message:
: 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
: This should fix Mozilla on macppc.
This is the wrong solution.
-lgcc is needed in order to provide compiler support functions, and MUST be
present. -lc is a convenience, since it provides the shlib dependency and
The correct solution is to fix Mozilla's build NOT to assume that
-Wl,--whole-archive may be used without -Wl,--no-whole-archive, and to fix
the old linker (for mac68k, now) to properly ignore "-l" arguments for
Please back out this change. It should be changed the other way (*always*
include -lgcc -lc) on all platforms.
-- Todd Vierling <email@example.com> * http://www.wasabisystems.com/
-- Speed, stability, security, and support. Wasabi NetBSD: Run with it.