diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2016-09-01 16:46:53 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2016-09-01 16:46:53 +0200 |
commit | fdd529b4c2753ab533ceb290cb6e94a2aa9cb381 (patch) | |
tree | a4c03cfc8bcf209932c0690cdbd290cfc25719f3 /main/gcc | |
parent | db21f1b9535a24c559bb7b22b05b9a9e5cb66f9b (diff) | |
download | aports-fdd529b4c2753ab533ceb290cb6e94a2aa9cb381.tar.bz2 aports-fdd529b4c2753ab533ceb290cb6e94a2aa9cb381.tar.xz |
main/gcc: remove omit-frame-pointer on aarch64
Diffstat (limited to 'main/gcc')
-rw-r--r-- | main/gcc/APKBUILD | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/main/gcc/APKBUILD b/main/gcc/APKBUILD index b7799c88b0..4b7f4fd66d 100644 --- a/main/gcc/APKBUILD +++ b/main/gcc/APKBUILD @@ -33,6 +33,15 @@ LIBGOMP=true LIBGCC=true LIBATOMIC=true LIBITM=true + +# omit-frame-pointner will break libgcc on aarch64 +# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71951 +if [ "$CARCH" = aarch64 ]; then + export CFLAGS=${CFLAGS//-fomit-frame-pointer/} + export CXXFLAGS=${CXXFLAGS//-fomit-frame-pointer/} + export CPPFLAGS=${CPPFLAGS//-fomit-frame-pointer/} +fi + if [ "$CHOST" != "$CTARGET" ]; then if [ "$BOOTSTRAP" ]; then LANG_CXX=false |