cmake_modules/compilerchecks.cmake
changeset 9211 6235925d0fa1
parent 9207 16373565692a
child 9217 992b7ef2eba3
equal deleted inserted replaced
9210:31fedd5ef878 9211:6235925d0fa1
    14 if(HAVE_STACKPROTECTOR)
    14 if(HAVE_STACKPROTECTOR)
    15     set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstack-protector-all -fstack-protector")
    15     set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstack-protector-all -fstack-protector")
    16     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector-all -fstack-protector")
    16     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector-all -fstack-protector")
    17     set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fstack-protector-all -fstack-protector")
    17     set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fstack-protector-all -fstack-protector")
    18     set(CMAKE_SHARED_LIBRARY_C_FLAGS  "${CMAKE_SHARED_LIBRARY_C_FLAGS} -fstack-protector-all -fstack-protector")
    18     set(CMAKE_SHARED_LIBRARY_C_FLAGS  "${CMAKE_SHARED_LIBRARY_C_FLAGS} -fstack-protector-all -fstack-protector")
    19     set(CMAKE_SHARED_LIBRARY_CXX_FLAGS  "${CMAKE_SHARED_LIBRARY_C_FLAGS} -fstack-protector-all -fstack-protector")
    19     set(CMAKE_SHARED_LIBRARY_CXX_FLAGS  "${CMAKE_SHARED_LIBRARY_CXX_FLAGS} -fstack-protector-all -fstack-protector")
    20 endif()
    20 endif()
    21 
    21 
    22 #symbol visibility, not supported on Windows (so we error out to avoid spam)
    22 #symbol visibility, not supported on Windows (so we error out to avoid spam)
    23 check_c_compiler_flag("-fvisibility=hidden -Werror" HAVE_VISIBILITY)
    23 check_c_compiler_flag("-fvisibility=hidden -Werror" HAVE_VISIBILITY)
    24 if(HAVE_VISIBILITY)
    24 if(HAVE_VISIBILITY)