This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: tweak spec file for spu-elf
- From: Ben Elliston <bje at au1 dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 23 Nov 2006 10:38:26 +1100
- Subject: 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