diff --git a/firefox.spec b/firefox.spec index 797d529..f59a225 100644 --- a/firefox.spec +++ b/firefox.spec @@ -1574,6 +1574,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