PATCH: tweak spec file for spu-elf

Ben Elliston bje@au1.ibm.com
Wed Nov 22 23:43:00 GMT 2006


The spu-elf target has no libc_p.a, so don't try to link with it when
compiling with -p or -pg.  Tested with a full spu-elf build.

OK for trunk?

Ben


2006-11-23  Ben Elliston  <bje@au.ibm.com>

        * config/spu/spu-elf.h (LIB_SPEC): Do not link with -lc_p.

Index: config/spu/spu-elf.h
===================================================================
--- config/spu/spu-elf.h        (revision 119102)
+++ config/spu/spu-elf.h        (working copy)
@@ -46,7 +46,7 @@
 #define LINK_SPEC "%{mlarge-mem: --defsym __stack=0xfffffff0 }"
 
 #define LIB_SPEC \
-       "-( %{!shared:%{g*:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}} -lgloss -)"
+       "-( %{!shared:%{g*:-lg}} -lc -lgloss -)"
 
 /* Turn off warnings in the assembler too. */
 #undef ASM_SPEC



More information about the Gcc-patches mailing list