From d5d5f4c8f795928cdb2d376083a85047b0560ce5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Exp=C3=B3sito?= Date: Thu, 30 May 2024 16:36:05 +0200 Subject: [PATCH] Fix the annocheck 'hardened' test in aarch64 --- vulkan-loader.spec | 5 +++++ 1 file changed, 5 insertions(+) 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