Skip to content

Commit

Permalink
add noexecstack linker flags
Browse files Browse the repository at this point in the history
  • Loading branch information
igormp committed Feb 19, 2025
1 parent 6a3dc63 commit c7ec0b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4 /d2FH4-")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,noexecstack")
endif()

find_package(Threads)
Expand Down

0 comments on commit c7ec0b1

Please sign in to comment.