diff --git a/vulkan-loader.spec b/vulkan-loader.spec index 500e61e..7de9c44 100644 --- a/vulkan-loader.spec +++ b/vulkan-loader.spec @@ -56,6 +56,11 @@ developing applications that use %{name}. %build +%ifarch aarch64 +export CFLAGS="%{optflags} -mbranch-protection=standard -Wp,-D_FORTIFY_SOURCE=2" +export CXXFLAGS=$CFLAGS +%endif + %cmake3 -GNinja -DCMAKE_BUILD_TYPE=Release %cmake_build