We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c35e675 commit 4ec6746Copy full SHA for 4ec6746
CMakeLists.txt
@@ -88,6 +88,14 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
88
if(HAS_NO_PIE AND NOT "${TARGET_OS}" STREQUAL "darwin")
89
iotjs_add_link_flags(-no-pie)
90
endif()
91
+else()
92
+
93
+ iotjs_add_compile_flags(-fPIE)
94
+ if("${TARGET_OS}" STREQUAL "darwin")
95
+ iotjs_add_link_flags(-Wl,-pie)
96
+ else()
97
+ iotjs_add_link_flags(-pie)
98
+ endif()
99
100
101
if (CREATE_SHARED_LIB)
0 commit comments