aboutsummaryrefslogtreecommitdiffstats
path: root/rpmrc.in
diff options
context:
space:
mode:
Diffstat (limited to 'rpmrc.in')
-rw-r--r--rpmrc.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmrc.in b/rpmrc.in
index 440a643..107c252 100644
--- a/rpmrc.in
+++ b/rpmrc.in
@@ -18,7 +18,7 @@ optflags: armv7l %{__common_cflags_with_ssp} -march=armv7-a -mfpu=neon -mtune=co
optflags: armv7hl %{__common_cflags_with_ssp} -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard
optflags: armv7hnl %{__common_cflags_with_ssp} -march=armv7-a -mfpu=neon -mabi=aapcs-linux -mfloat-abi=hard
-optflags: aarch64 %{__common_cflags_with_ssp} -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection
+optflags: aarch64 %{__common_cflags_with_ssp} -mbranch-protection=standard -fasynchronous-unwind-tables %[ "%{toolchain}" == "gcc" ? "-fstack-clash-protection" : "" ]
#############################################################
# Canonical arch names and numbers