mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2026-04-07 09:01:29 -06:00
12 lines
399 B
CMake
12 lines
399 B
CMake
function(disable_pax_mprotect target)
|
|
if (BSD STREQUAL "NetBSD")
|
|
add_custom_command(TARGET ${target} POST_BUILD
|
|
COMMAND paxctl +m "$<TARGET_FILE:${target}>"
|
|
COMMENT "Disabling PaX MPROTECT restrictions for '${target}'"
|
|
VERBATIM
|
|
)
|
|
else()
|
|
message(FATAL_ERROR "disable_pax_mprotect only applies on NetBSD.")
|
|
endif()
|
|
endfunction()
|