patch-cmake_Modules_DefineCompilerFlags_cmake 720 B

1234567891011121314
  1. --- libssh-0.5.3.orig/cmake/Modules/DefineCompilerFlags.cmake 2012-11-20 12:41:49.000000000 +0100
  2. +++ libssh-0.5.3/cmake/Modules/DefineCompilerFlags.cmake 2013-12-17 13:20:04.073723090 +0100
  3. @@ -20,11 +20,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. check_c_compiler_flag("-D_FORTIFY_SOURCE=2" WITH_FORTIFY_SOURCE)
  12. if (WITH_FORTIFY_SOURCE)
  13. set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_FORTIFY_SOURCE=2")