patch-CompilerChecks_cmake 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. --- libssh-0.9.5.orig/CompilerChecks.cmake 2020-05-07 13:51:36.000000000 +0200
  2. +++ libssh-0.9.5/CompilerChecks.cmake 2021-03-01 23:53:39.370794233 +0100
  3. @@ -67,29 +67,6 @@ if (UNIX)
  4. endif()
  5. endif()
  6. - check_c_compiler_flag_ssp("-fstack-protector-strong" WITH_STACK_PROTECTOR_STRONG)
  7. - if (WITH_STACK_PROTECTOR_STRONG)
  8. - list(APPEND SUPPORTED_COMPILER_FLAGS "-fstack-protector-strong")
  9. - # This is needed as Solaris has a seperate libssp
  10. - if (SOLARIS)
  11. - list(APPEND SUPPORTED_LINKER_FLAGS "-fstack-protector-strong")
  12. - endif()
  13. - else (WITH_STACK_PROTECTOR_STRONG)
  14. - check_c_compiler_flag_ssp("-fstack-protector" WITH_STACK_PROTECTOR)
  15. - if (WITH_STACK_PROTECTOR)
  16. - list(APPEND SUPPORTED_COMPILER_FLAGS "-fstack-protector")
  17. - # This is needed as Solaris has a seperate libssp
  18. - if (SOLARIS)
  19. - list(APPEND SUPPORTED_LINKER_FLAGS "-fstack-protector")
  20. - endif()
  21. - endif()
  22. - endif (WITH_STACK_PROTECTOR_STRONG)
  23. -
  24. - check_c_compiler_flag_ssp("-fstack-clash-protection" WITH_STACK_CLASH_PROTECTION)
  25. - if (WITH_STACK_CLASH_PROTECTION)
  26. - list(APPEND SUPPORTED_COMPILER_FLAGS "-fstack-clash-protection")
  27. - endif()
  28. -
  29. if (PICKY_DEVELOPER)
  30. add_c_compiler_flag("-Wno-error=deprecated-declarations" SUPPORTED_COMPILER_FLAGS)
  31. add_c_compiler_flag("-Wno-error=tautological-compare" SUPPORTED_COMPILER_FLAGS)