Commit c1a172ee authored by Timo Teräs's avatar Timo Teräs

main/gcc: fix crossbuild failure

parent f898570b
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment