From b7b755e0c834a7f4257781251905fcb75c6d2012 Mon Sep 17 00:00:00 2001 From: Marco Clemencic <marco.clemencic@cern.ch> Date: Sat, 14 Oct 2023 12:06:33 +0200 Subject: [PATCH] Avoid warning: ittptmark64.o: missing .note.GNU-stack section implies executable stack --- GaudiProfiling/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GaudiProfiling/CMakeLists.txt b/GaudiProfiling/CMakeLists.txt index 34fe145fba..3e8f60da56 100644 --- a/GaudiProfiling/CMakeLists.txt +++ b/GaudiProfiling/CMakeLists.txt @@ -87,6 +87,10 @@ if(GAUDI_USE_INTELAMPLIFIER) SOURCES src/component/intel/IntelProfile.cpp LINK GaudiKernel IntelAmplifier::libittnotify) + # Avoid warning: ittptmark64.o: missing .note.GNU-stack section implies executable stack + # (deprecated behaviour) + target_link_options(IntelProfiler PRIVATE -Wl,-z,execstack) + target_link_options(GaudiIntelProfiling PRIVATE -Wl,-z,execstack) else() message(STATUS "GaudiProfiling: the module Intel VTune profiler is disabled") endif() -- GitLab