Annotation of pkgsrc/security/libssh/patches/patch-CompilerChecks.cmake, revision 1.2

1.2     ! nia         1: $NetBSD: patch-CompilerChecks.cmake,v 1.1 2018/12/03 15:19:51 adam Exp $
1.1       adam        2: 
                      3: Let PkgSrc handle security features.
                      4: 
1.2     ! nia         5: --- CompilerChecks.cmake.orig  2019-06-27 08:34:16.000000000 +0000
1.1       adam        6: +++ CompilerChecks.cmake
1.2     ! nia         7: @@ -66,29 +66,6 @@ if (UNIX)
1.1       adam        8:          endif()
                      9:      endif()
                     10:  
                     11: -    check_c_compiler_flag_ssp("-fstack-protector-strong" WITH_STACK_PROTECTOR_STRONG)
                     12: -    if (WITH_STACK_PROTECTOR_STRONG)
                     13: -        list(APPEND SUPPORTED_COMPILER_FLAGS "-fstack-protector-strong")
1.2     ! nia        14: -        # This is needed as Solaris has a seperate libssp
        !            15: -        if (SOLARIS)
        !            16: -            list(APPEND SUPPORTED_LINKER_FLAGS "-fstack-protector-strong")
        !            17: -        endif()
1.1       adam       18: -    else (WITH_STACK_PROTECTOR_STRONG)
                     19: -        check_c_compiler_flag_ssp("-fstack-protector" WITH_STACK_PROTECTOR)
                     20: -        if (WITH_STACK_PROTECTOR)
                     21: -            list(APPEND SUPPORTED_COMPILER_FLAGS "-fstack-protector")
1.2     ! nia        22: -            # This is needed as Solaris has a seperate libssp
        !            23: -            if (SOLARIS)
        !            24: -                list(APPEND SUPPORTED_LINKER_FLAGS "-fstack-protector")
        !            25: -            endif()
1.1       adam       26: -        endif()
                     27: -    endif (WITH_STACK_PROTECTOR_STRONG)
1.2     ! nia        28: -
1.1       adam       29: -    check_c_compiler_flag_ssp("-fstack-clash-protection" WITH_STACK_CLASH_PROTECTION)
                     30: -    if (WITH_STACK_CLASH_PROTECTION)
                     31: -        list(APPEND SUPPORTED_COMPILER_FLAGS "-fstack-clash-protection")
                     32: -    endif()
1.2     ! nia        33: -
1.1       adam       34:      if (PICKY_DEVELOPER)
                     35:          add_c_compiler_flag("-Wno-error=deprecated-declarations" SUPPORTED_COMPILER_FLAGS)
1.2     ! nia        36:          add_c_compiler_flag("-Wno-error=tautological-compare" SUPPORTED_COMPILER_FLAGS)

CVSweb <webmaster@jp.NetBSD.org>