mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-01 06:42:01 +01:00
main/gcc: fix crossbuild failure
This commit is contained in:
parent
f898570b73
commit
c1a172eeff
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user