include: /usr/lib/rpm/rpmrc

optflags: i586 %{__global_compiler_flags} -m32 -march=i586 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection
optflags: i686 %{__global_compiler_flags} -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection
optflags: athlon %{__global_compiler_flags} -m32 -march=athlon -fasynchronous-unwind-tables -fstack-clash-protection
optflags: x86_64 %{__global_compiler_flags} -m64
optflags: x86_64_v2 %{__global_compiler_flags} -m64 -march=x86-64-v2
optflags: x86_64_v3 %{__global_compiler_flags} -m64 -march=x86-64-v3
optflags: x86_64_v4 %{__global_compiler_flags} -m64 -march=x86-64-v4

optflags: aarch64 %{__global_compiler_flags} -mbranch-protection=standard -fasynchronous-unwind-tables %[ "%{toolchain}" == "gcc" ? "-fstack-clash-protection" : "" ]

# set build arch to fedora buildarches on hardware capable of running it
# saves having to do rpmbuild --target=
buildarchtranslate: athlon: i586
buildarchtranslate: geode: i586
buildarchtranslate: pentium4: i586
buildarchtranslate: pentium3: i586
buildarchtranslate: i686: i586
buildarchtranslate: i586: i586
