Blame SOURCES/corefx-hardening-flags.patch

0137a2
--- a/src/Native/Unix/System.Native/CMakeLists.txt
0137a2
+++ b/src/Native/Unix/System.Native/CMakeLists.txt
0137a2
@@ -48,6 +48,8 @@
0137a2
 set_target_properties(System.Native-Static PROPERTIES PREFIX "")
0137a2
 set_target_properties(System.Native-Static PROPERTIES OUTPUT_NAME System.Native CLEAN_DIRECT_OUTPUT 1)
0137a2
 
0137a2
+set_target_properties(System.Native PROPERTIES LINK_FLAGS -pie)
0137a2
+
0137a2
 if (CMAKE_SYSTEM_NAME STREQUAL Linux AND NOT CLR_CMAKE_PLATFORM_ANDROID)
0137a2
     target_link_libraries(System.Native rt)
0137a2
 endif ()