From 65cd0640b79ef72e8a3eee5bb24a2082a8145579 Mon Sep 17 00:00:00 2001 From: Jan Horak Date: Mon, 26 May 2025 15:52:00 +0200 Subject: [PATCH] annocheck fixing by asflags Related: RHEL-91358 --- firefox.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/firefox.spec b/firefox.spec index 180cbc3..af44053 100644 --- a/firefox.spec +++ b/firefox.spec @@ -1573,6 +1573,13 @@ MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -DNSS_PKCS11_3_0_STRICT" echo "export CFLAGS=\"$MOZ_OPT_FLAGS\"" >> .mozconfig echo "export CXXFLAGS=\"$MOZ_OPT_FLAGS\"" >> .mozconfig +%ifarch aarch64 +echo "export ASFLAGS=\"-mbranch-protection=standard\"" >> .mozconfig +%endif +%ifarch x86_64 +echo "export ASFLAGS=\"-fcf-protection=full\"" >> .mozconfig +%endif + echo "export LDFLAGS=\"$MOZ_LINK_FLAGS\"" >> .mozconfig echo "export CC=gcc" >> .mozconfig echo "export CXX=g++" >> .mozconfig