diff --git a/GaudiProfiling/CMakeLists.txt b/GaudiProfiling/CMakeLists.txt index 34fe145fbacd9a830f973c38338b9df4a3e3565e..3e8f60da5681bdca24b9297a29b7ee7565644ce3 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()