Skip to content

Commit 95d2a2f

Browse files
committedNov 9, 2018
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
1 parent e0841e4 commit 95d2a2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if(NOT TOKEN_AUTH_ONLY)
1515
endif()
1616

1717
if(NOT MSVC)
18-
if(NOT (CMAKE_SYSTEM_PROCESSOR MATCHES "^(alpha|parisc|hppa)"))
18+
if(NOT (CMAKE_SYSTEM_PROCESSOR MATCHES "^(alpha|parisc|hppa)") AND NOT CMAKE_CROSSCOMPILING)
1919
if((CMAKE_CXX_COMPILER_ID MATCHES "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9))
2020
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstack-protector --param=ssp-buffer-size=4")
2121
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector --param=ssp-buffer-size=4")

0 commit comments

Comments
 (0)
Please sign in to comment.