1
0

patch-cmake_Modules_DefineCompilerFlags_cmake 731 B

1234567891011121314
  1. --- libssh-0.6.3.orig/cmake/Modules/DefineCompilerFlags.cmake 2014-02-06 10:20:57.000000000 +0100
  2. +++ libssh-0.6.3/cmake/Modules/DefineCompilerFlags.cmake 2014-03-14 09:10:56.621673326 +0100
  3. @@ -21,11 +21,6 @@ if (UNIX AND NOT WIN32)
  4. set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
  5. endif (WITH_FPIC)
  6. - check_c_compiler_flag_ssp("-fstack-protector" WITH_STACK_PROTECTOR)
  7. - if (WITH_STACK_PROTECTOR)
  8. - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstack-protector")
  9. - endif (WITH_STACK_PROTECTOR)
  10. -
  11. if (CMAKE_BUILD_TYPE)
  12. string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LOWER)
  13. if (CMAKE_BUILD_TYPE_LOWER MATCHES (release|relwithdebinfo|minsizerel))