Skip to content

Commit

Permalink
add -z noexecstack for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
woodser committed Apr 14, 2024
1 parent ee61a09 commit e4c24d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,11 @@ if (BUILD_LIBRARY)
)

if (WIN32)
target_link_options(monero-cpp PUBLIC "-Wl,--enable-auto-import,--export-all-symbols")
target_link_options(monero-cpp PUBLIC "-Wl,--enable-auto-import,--export-all-symbols")
endif()

if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
target_link_options(monero-cpp PRIVATE "-z" "noexecstack")
endif()

INSTALL(FILES src/daemon/monero_daemon.h
Expand Down

0 comments on commit e4c24d8

Please sign in to comment.