main/gcc: fix crossbuild failure

This commit is contained in:
Timo Teräs 2013-09-25 07:29:56 +00:00
parent f898570b73
commit c1a172eeff

View File

@ -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