Blame SOURCES/corefx-hardening-flags.patch

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