Link-time failures from "simple" CFLAGS changes

Tom Rini trini at kernel.crashing.org
Tue Jan 8 09:15:31 EST 2002


On Mon, Jan 07, 2002 at 05:01:51PM -0500, mod+linuxppc-dev at MissionCriticalLinux.com wrote:

> When I change -O2 to -O0 in my CFLAGS definition in Makefile thus:
[snip]
> ...I am astounded to see thousands of unresolved references
> at kernel link time.  WTF?  Any ideas?  These are the
> sorts of symbols that come up undefined:

You need at least -O1 for the kernel to compile.  I _think_ this is
documented somewhere even, but I don't recall where right now.

--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list