From 04e310e5ed08300a1a7bd05dc85ea2a662cf662f Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Fri, 27 Feb 2015 15:57:25 +0800 Subject: Build: use -Bsymbolic to fix conflicts with other LLVM users. As there may be some other LLVM users such as mesa, and they may link to different LLVM library. To avoid such type of conflicts, we use -Bsymbolic to disable the symbol preemption. This patch should fix the build bug at: https://bugs.freedesktop.org/show_bug.cgi?id=89325 Signed-off-by: Zhigang Gong Reviewed-by: "Yang, Rong R" --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index caad0570..9b05a0f8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -101,7 +101,7 @@ ELSE (USE_STANDALONE_GBE_COMPILER STREQUAL "true") ENDIF (USE_STANDALONE_GBE_COMPILER STREQUAL "true") -set (CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined ${LLVM_LDFLAGS}") +set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-Bsymbolic -Wl,--no-undefined ${LLVM_LDFLAGS}") # XLib Find_Package(X11) -- cgit v1.2.3