frontend: Add -no-pie for Linux

This commit is contained in:
zhupengfei
2020-06-23 22:07:51 +08:00
parent 1b8b66521f
commit 877c4724d8
+3
View File
@@ -47,6 +47,9 @@ elseif(WIN32)
elseif(MINGW)
set_target_properties(threeSD PROPERTIES LINK_FLAGS_RELEASE "-mwindows")
endif()
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
# In Ubuntu, the executable would be recognized as a shared library otherwise.
target_link_options(threeSD PRIVATE "-no-pie")
endif()
target_compile_definitions(threeSD PRIVATE