diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/gcc/APKBUILD | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/main/gcc/APKBUILD b/main/gcc/APKBUILD index 45c7609b92..1aa6003c08 100644 --- a/main/gcc/APKBUILD +++ b/main/gcc/APKBUILD @@ -13,7 +13,7 @@ _cross="" && _cross="-$CTARGET" pkgname="$pkgname$_cross" -pkgrel=1 +pkgrel=2 pkgdesc="The GNU Compiler Collection" url="http://gcc.gnu.org" arch="all" @@ -225,14 +225,6 @@ prepare() { return 1 fi - # fix ada bootstrap - # piepatches adds -fstack-check to spec which breaks ada bootstrap - # TODO: upstream this to piepatches - sed -i -e 's/stage1_cflags="$stage1_cflags -fno-stack-protector"/stage1_cflags="$stage1_cflags -fno-stack-protector -fno-stack-check"/g' \ - configure - sed -i -e 's/^ESP_NOSSP_CFLAGS = -fno-stack-protector$/ESP_NOSSP_CFLAGS = -fno-stack-protector -fno-stack-check/g' \ - Makefile.in - # 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 @@ -357,6 +349,11 @@ build() { --with-system-zlib \ || return 1 + # fix ada bootstrap + # piepatches adds -fstack-check to spec which breaks ada bootstrap + # TODO: upstream this to piepatches + export ADA_CFLAGS='-fno-stack-check' + make || return 1 } |