mirror of
https://github.com/openwrt/packages.git
synced 2026-01-10 03:41:29 +00:00
add libssh
Signed-off-by: Mislav Novakovic <mislav.novakovic@sartura.hr>
This commit is contained in:
22
libs/libssh/patches/002-disable-libssp.patch
Normal file
22
libs/libssh/patches/002-disable-libssp.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
--- a/cmake/Modules/DefineCompilerFlags.cmake
|
||||
+++ b/cmake/Modules/DefineCompilerFlags.cmake
|
||||
@@ -1,7 +1,6 @@
|
||||
# define system dependent compiler flags
|
||||
|
||||
include(CheckCCompilerFlag)
|
||||
-include(CheckCCompilerFlagSSP)
|
||||
|
||||
if (UNIX AND NOT WIN32)
|
||||
#
|
||||
@@ -21,11 +20,6 @@ if (UNIX AND NOT WIN32)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
|
||||
endif (WITH_FPIC)
|
||||
|
||||
- check_c_compiler_flag_ssp("-fstack-protector" WITH_STACK_PROTECTOR)
|
||||
- if (WITH_STACK_PROTECTOR)
|
||||
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstack-protector")
|
||||
- endif (WITH_STACK_PROTECTOR)
|
||||
-
|
||||
if (CMAKE_BUILD_TYPE)
|
||||
string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LOWER)
|
||||
if (CMAKE_BUILD_TYPE_LOWER MATCHES (release|relwithdebinfo|minsizerel))
|
||||
Reference in New Issue
Block a user