[evolution-mapi] Bug 781833 - Do not set '-Wl,--no-undefined' on BSD



commit 629fad00fab9637174b93765bf9ae3df58141c29
Author: Antoine Jacoutot <ajacoutot gnome org>
Date:   Fri Apr 28 10:06:38 2017 +0200

    Bug 781833 - Do not set '-Wl,--no-undefined' on BSD

 cmake/modules/SetupBuildFlags.cmake |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/cmake/modules/SetupBuildFlags.cmake b/cmake/modules/SetupBuildFlags.cmake
index 3221591..10b12bd 100644
--- a/cmake/modules/SetupBuildFlags.cmake
+++ b/cmake/modules/SetupBuildFlags.cmake
@@ -77,9 +77,9 @@ macro(setup_build_flags _maintainer_mode)
                endforeach()
        endif(CMAKE_CXX_COMPILER_ID)
 
-       if(("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang") OR ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU"))
+       if(("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang") OR ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU") AND (NOT 
${CMAKE_SYSTEM_NAME} MATCHES "BSD"))
                set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--no-undefined")
                set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined")
                set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
-       endif(("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang") OR ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU"))
+       endif(("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang") OR ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU") AND 
(NOT ${CMAKE_SYSTEM_NAME} MATCHES "BSD"))
 endmacro()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]