This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: tweak spec file for spu-elf


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]