Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerhard Gappmeier <gerhard.gappmeier@ascolab.com>2018-11-08 20:15:52 +0300
committerKevin Ottens <kevin.ottens@nextcloud.com>2020-12-15 12:58:18 +0300
commitff9bd84c45ce9471c8355be1e9b591322d1b5a1b (patch)
tree80c05465cf4ea3d0cd17d87c5cafbcebc5062c1e /src/CMakeLists.txt
parent6aead6425eb00110ffc24aa47c5dde1e1ab8cd25 (diff)
Disable stack protector features when cross compiling
When cross-compiling this for remarkable using the poky toolchain this results in linker errors with stack protector: libssp_nonshared.a not found
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index b3658c98b..69c9cfde3 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -13,7 +13,7 @@ if(NOT TOKEN_AUTH_ONLY)
endif()
if(NOT MSVC)
- if(NOT (CMAKE_SYSTEM_PROCESSOR MATCHES "^(alpha|parisc|hppa)"))
+ if(NOT (CMAKE_SYSTEM_PROCESSOR MATCHES "^(alpha|parisc|hppa)") AND NOT CMAKE_CROSSCOMPILING)
if((CMAKE_CXX_COMPILER_ID MATCHES "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9))
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstack-protector --param=ssp-buffer-size=4")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector --param=ssp-buffer-size=4")