From 90d58497e0281b2ca00be42da88f6036035cd775 Mon Sep 17 00:00:00 2001 From: Milton Stafford Date: Mon, 10 Jul 2017 11:16:30 -0400 Subject: [PATCH] Update CMakeLists.txt Include "-fno-stack-protector" for linking and compiling for systems that do not have this have this flag as a default. --- xpcPlugin/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xpcPlugin/CMakeLists.txt b/xpcPlugin/CMakeLists.txt index d07ae27..53b2bcf 100644 --- a/xpcPlugin/CMakeLists.txt +++ b/xpcPlugin/CMakeLists.txt @@ -19,7 +19,7 @@ add_library(xpc64 SHARED XPCPlugin.cpp MessageHandlers.cpp UDPSocket.cpp) set_target_properties(xpc64 PROPERTIES PREFIX "" SUFFIX ".xpl") -set_target_properties(xpc64 PROPERTIES COMPILE_FLAGS "-m64" LINK_FLAGS "-shared -rdynamic -nodefaultlibs -undefined_warning -m64") +set_target_properties(xpc64 PROPERTIES COMPILE_FLAGS "-m64 -fno-stack-protector" LINK_FLAGS "-shared -rdynamic -nodefaultlibs -undefined_warning -m64 -fno-stack-protector") add_library(xpc32 SHARED XPCPlugin.cpp DataManager.cpp @@ -29,7 +29,7 @@ add_library(xpc32 SHARED XPCPlugin.cpp MessageHandlers.cpp UDPSocket.cpp) set_target_properties(xpc32 PROPERTIES PREFIX "" SUFFIX ".xpl") -set_target_properties(xpc32 PROPERTIES COMPILE_FLAGS "-m32" LINK_FLAGS "-shared -rdynamic -nodefaultlibs -undefined_warning -m32") +set_target_properties(xpc32 PROPERTIES COMPILE_FLAGS "-m32 -fno-stack-protector" LINK_FLAGS "-shared -rdynamic -nodefaultlibs -undefined_warning -m32 -fno-stack-protector") # Switch install targets when uncommenting the 32 bit line above. install(TARGETS xpc64 DESTINATION XPlaneConnect/64 RENAME lin.xpl)