From c1a172eeffd00a81e1f6c3ebc6f92d5edafc8a4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Wed, 25 Sep 2013 07:29:56 +0000 Subject: main/gcc: fix crossbuild failure --- main/gcc/APKBUILD | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'main/gcc/APKBUILD') diff --git a/main/gcc/APKBUILD b/main/gcc/APKBUILD index 864a66cde..488dde45d 100644 --- a/main/gcc/APKBUILD +++ b/main/gcc/APKBUILD @@ -227,6 +227,12 @@ prepare() { return 1 fi + # genautomata crashes with a "Bus Error" when compiled with PIC + # mostly affecting cross-builds as on native build bootstrapping + # somehow seems to build proper genautomata + sed -i gcc/Makefile.in -e 's|^build/genautomata$(build_exeext) .*|& -fno-PIC|' \ + || return 1 + # enable hardened cflags by default # building gcc wih PIE seem to hit some strange bug. we probably run # out of some resource. so we disable PIE for gcc while enabling it -- cgit v1.2.3