summaryrefslogtreecommitdiff
path: root/package/libssh/patches
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-12-17 13:21:07 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2013-12-17 13:21:07 +0100
commit346e5341b1f5bad2b257bd7658669fbfac7a3bec (patch)
treec0eced7a44dbe4d9babb29944ef6bf61986ddaf7 /package/libssh/patches
parentbb8da6757f0a0be18341e2a31a97ab1e8fffa37f (diff)
remove stack protector check
Diffstat (limited to 'package/libssh/patches')
-rw-r--r--package/libssh/patches/patch-cmake_Modules_DefineCompilerFlags_cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/libssh/patches/patch-cmake_Modules_DefineCompilerFlags_cmake b/package/libssh/patches/patch-cmake_Modules_DefineCompilerFlags_cmake
new file mode 100644
index 000000000..a67998250
--- /dev/null
+++ b/package/libssh/patches/patch-cmake_Modules_DefineCompilerFlags_cmake
@@ -0,0 +1,14 @@
+--- libssh-0.5.3.orig/cmake/Modules/DefineCompilerFlags.cmake 2012-11-20 12:41:49.000000000 +0100
++++ libssh-0.5.3/cmake/Modules/DefineCompilerFlags.cmake 2013-12-17 13:20:04.073723090 +0100
+@@ -20,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)
+-
+ check_c_compiler_flag("-D_FORTIFY_SOURCE=2" WITH_FORTIFY_SOURCE)
+ if (WITH_FORTIFY_SOURCE)
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_FORTIFY_SOURCE=2")