aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/gcc/APKBUILD9
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