⛏️ index : buildtools.git

author François Revol <revol@free.fr> 2015-04-20 16:46:00.0 +02:00:00
committer François Revol <revol@free.fr> 2015-04-20 16:57:25.0 +02:00:00
commit
5ba2e2476452449349c88068283581e445472e19 [patch]
tree
3f4b26117236f55856f64b71190c079a99b64e44
parent
519355391e32be5e078f53a3fe3cf74b7f274654
download
5ba2e2476452449349c88068283581e445472e19.tar.gz

gcc: fix PPC LINK_SPEC so bootstrapping gcc works again

Same fix as btrev43088: turn off -no-undefined for -shared and -nostart.

Diff

 gcc/gcc/config/rs6000/haiku.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/gcc/config/rs6000/haiku.h b/gcc/gcc/config/rs6000/haiku.h
index d89ce0b..9ff36f1 100644
--- a/gcc/gcc/config/rs6000/haiku.h
+++ b/gcc/gcc/config/rs6000/haiku.h
@@ -53,7 +53,7 @@
/* If ELF is the default format, we should not use /lib/elf.  */

#undef	LINK_SPEC
#define LINK_SPEC "%{!o*:-o %b} -m elf32ppchaiku %{!r:-shared} -no-undefined %{nostart:-e 0}"
#define LINK_SPEC "%{!o*:-o %b} -m elf32ppchaiku %{!r:-shared} %{nostart:-e 0} %{shared:-e 0} %{!shared: %{!nostart: -no-undefined}}"

#undef CC1_SPEC
#define CC1_SPEC "%{!no-fpic:%{!fno-pic:%{!fno-pie:%{!fpie:%{!fPIC:%{!fPIE:-fPIC}}}}}} %{!Wmultichar: -Wno-multichar} %(cc1_cpu) %{profile:-p}"