# # @RPMVENDORDIR@/rpmrc ############################################################# # Values for RPM_OPT_FLAGS for various platforms optflags: i386 %{__common_cflags_with_ssp} -fomit-frame-pointer -m32 -march=i386 -fasynchronous-unwind-tables -fstack-clash-protection optflags: i486 %{__common_cflags_with_ssp} -fomit-frame-pointer -m32 -march=i486 -fasynchronous-unwind-tables -fstack-clash-protection optflags: i586 %{__common_cflags_with_ssp} -fomit-frame-pointer -m32 -march=i586 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection optflags: i686 %{__common_cflags_with_ssp} -fomit-frame-pointer -m32 -march=i686 -msse2 -mtune=generic -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full optflags: athlon %{__common_cflags_with_ssp} -fomit-frame-pointer -m32 -march=athlon -fasynchronous-unwind-tables -fstack-clash-protection optflags: x86_64 %{__common_cflags_with_ssp} -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full # Cortex A8 optflags: armv7 %{__common_cflags_with_ssp} -march=armv7-a -mfpu=neon -mtune=cortex-a8 -mabi=aapcs-linux -mfloat-abi=softfp optflags: armv7l %{__common_cflags_with_ssp} -march=armv7-a -mfpu=neon -mtune=cortex-a8 -mabi=aapcs-linux -mfloat-abi=softfp 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 %[ "%{toolchain}" == "gcc" ? "-fstack-clash-protection" : "" ] ############################################################# # Canonical arch names and numbers arch_canon: x86_64: x86_64 19 ############################################################# # For a given uname().machine, the default build arch buildarchtranslate: athlon: i686 buildarchtranslate: geode: i686 buildarchtranslate: pentium4: i686 buildarchtranslate: pentium3: i686 buildarchtranslate: i686: i686 buildarchtranslate: i586: i586 buildarchtranslate: i486: i486 buildarchtranslate: i386: i386 buildarchtranslate: armv7: armv5t buildarchtranslate: armv7l: @ARMV7CANONTARGETCPU@ buildarchtranslate: armv7hl: armv7hl buildarchtranslate: armv7hnl: armv7hl buildarchtranslate: armv8l: @ARMV8CANONTARGETCPU@ buildarchtranslate: armv8hl: @ARMV8CANONTARGETCPU@ buildarchtranslate: armv8hnl: @ARMV8CANONTARGETCPU@ buildarchtranslate: armv8hcnl: @ARMV8CANONTARGETCPU@ ############################################################# # Architecture compatibility arch_compat: armv8l: armv7hl