[Beignet] [PATCH] Build: use -Bsymbolic to fix conflicts with other LLVM users.
Yang, Rong R
rong.r.yang at intel.com
Mon Mar 2 00:17:11 PST 2015
LGTM.
> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
> Zhigang Gong
> Sent: Friday, February 27, 2015 15:57
> To: beignet at lists.freedesktop.org
> Cc: Gong, Zhigang
> Subject: [Beignet] [PATCH] 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 <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
>
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet
More information about the Beignet
mailing list