# HG changeset patch # User koda # Date 1372459463 -7200 # Node ID 2d88d01bad07e0606b434b9afb9cd5794b5674ad # Parent 3f16f5e438147f09738b13cb0b11d700981b36c2 disable stack protection on bsd too (untested) diff -r 3f16f5e43814 -r 2d88d01bad07 cmake_modules/compilerchecks.cmake --- a/cmake_modules/compilerchecks.cmake Sat Jun 29 00:28:47 2013 +0200 +++ b/cmake_modules/compilerchecks.cmake Sat Jun 29 00:44:23 2013 +0200 @@ -11,9 +11,10 @@ #stack protection, when found it needs to go in the linker flags too #it is disabled on win32 because it adds a dll and messes with linker +#some bsd installations reported problems too #(see 822312 654424 on bugzilla.redhat.com) check_c_compiler_flag("-fstack-protector-all -fstack-protector" HAVE_STACKPROTECTOR) -if(HAVE_STACKPROTECTOR AND (NOT WIN32)) +if(HAVE_STACKPROTECTOR AND ((NOT WIN32) OR (CMAKE_SYSTEM_NAME MATCHES BSD.OS))) add_flag_append(CMAKE_C_FLAGS "-fstack-protector-all -fstack-protector") add_flag_append(CMAKE_CXX_FLAGS "-fstack-protector-all -fstack-protector") add_flag_append(CMAKE_EXE_LINKER_FLAGS "-fstack-protector-all -fstack-protector")