From 48d395c7de0ab12cfa7b5276e0133af93a14a89e Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 2 Mar 2021 00:54:55 +0100 Subject: different kodi-task bugfixes --- package/libssh/patches/patch-CompilerChecks_cmake | 32 +++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 package/libssh/patches/patch-CompilerChecks_cmake (limited to 'package/libssh/patches/patch-CompilerChecks_cmake') diff --git a/package/libssh/patches/patch-CompilerChecks_cmake b/package/libssh/patches/patch-CompilerChecks_cmake new file mode 100644 index 000000000..8f5d3d805 --- /dev/null +++ b/package/libssh/patches/patch-CompilerChecks_cmake @@ -0,0 +1,32 @@ +--- libssh-0.9.5.orig/CompilerChecks.cmake 2020-05-07 13:51:36.000000000 +0200 ++++ libssh-0.9.5/CompilerChecks.cmake 2021-03-01 23:53:39.370794233 +0100 +@@ -67,29 +67,6 @@ if (UNIX) + endif() + endif() + +- check_c_compiler_flag_ssp("-fstack-protector-strong" WITH_STACK_PROTECTOR_STRONG) +- if (WITH_STACK_PROTECTOR_STRONG) +- list(APPEND SUPPORTED_COMPILER_FLAGS "-fstack-protector-strong") +- # This is needed as Solaris has a seperate libssp +- if (SOLARIS) +- list(APPEND SUPPORTED_LINKER_FLAGS "-fstack-protector-strong") +- endif() +- else (WITH_STACK_PROTECTOR_STRONG) +- check_c_compiler_flag_ssp("-fstack-protector" WITH_STACK_PROTECTOR) +- if (WITH_STACK_PROTECTOR) +- list(APPEND SUPPORTED_COMPILER_FLAGS "-fstack-protector") +- # This is needed as Solaris has a seperate libssp +- if (SOLARIS) +- list(APPEND SUPPORTED_LINKER_FLAGS "-fstack-protector") +- endif() +- endif() +- endif (WITH_STACK_PROTECTOR_STRONG) +- +- check_c_compiler_flag_ssp("-fstack-clash-protection" WITH_STACK_CLASH_PROTECTION) +- if (WITH_STACK_CLASH_PROTECTION) +- list(APPEND SUPPORTED_COMPILER_FLAGS "-fstack-clash-protection") +- endif() +- + if (PICKY_DEVELOPER) + add_c_compiler_flag("-Wno-error=deprecated-declarations" SUPPORTED_COMPILER_FLAGS) + add_c_compiler_flag("-Wno-error=tautological-compare" SUPPORTED_COMPILER_FLAGS) -- cgit v1.2.3