[Beignet] [PATCH] Build: use -Bsymbolic to fix conflicts with other LLVM users.

Zhigang Gong zhigang.gong at intel.com
Thu Feb 26 23:57:25 PST 2015


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 <zhigang.gong at intel.com>
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index b731973..88ff872 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -86,7 +86,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)
-- 
1.9.1



More information about the Beignet mailing list