You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
313 B
12 lines
313 B
3 years ago
|
--- a/src/corehost/cli/exe/exe.cmake
|
||
|
+++ b/src/corehost/cli/exe/exe.cmake
|
||
|
@@ -44,6 +44,8 @@
|
||
|
|
||
|
add_executable(${DOTNET_HOST_EXE_NAME} ${SOURCES} ${RESOURCES})
|
||
|
|
||
|
+SET_TARGET_PROPERTIES(${DOTNET_HOST_EXE_NAME} PROPERTIES LINK_FLAGS -pie)
|
||
|
+
|
||
|
if(NOT WIN32)
|
||
|
disable_pax_mprotect(${DOTNET_HOST_EXE_NAME})
|
||
|
endif()
|