summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tools/crossgen/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/crossgen/CMakeLists.txt b/src/tools/crossgen/CMakeLists.txt
index 410f82d929..6b96f83998 100644
--- a/src/tools/crossgen/CMakeLists.txt
+++ b/src/tools/crossgen/CMakeLists.txt
@@ -51,6 +51,7 @@ if(CLR_CMAKE_PLATFORM_UNIX)
coreclrpal
palrt
)
+ set_target_properties(crossgen PROPERTIES LINK_FLAGS -pie)
else()
target_link_libraries(crossgen
advapi32