Blame SOURCES/corefx-hardening-flags.patch

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