From: Emil Velikov Date: Fri, 4 Apr 2014 22:37:15 +0000 (+0100) Subject: targets/opencl: hide all the exported llvm/clang mayhem... hopefully X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f743670b9a10ab296a5e90b866d1c766d44cf98d;p=mesa.git targets/opencl: hide all the exported llvm/clang mayhem... hopefully Both llvm and clang polute the exported symbol table, as soon as we try to link with either one. Other than those two everything else looks good (clean). Cc: Tom Stellard Signed-off-by: Emil Velikov Reviewed-by: Francisco Jerez --- diff --git a/src/gallium/targets/opencl/Makefile.am b/src/gallium/targets/opencl/Makefile.am index 29909da29f2..ba45aee81c1 100644 --- a/src/gallium/targets/opencl/Makefile.am +++ b/src/gallium/targets/opencl/Makefile.am @@ -6,6 +6,7 @@ lib@OPENCL_LIBNAME@_la_LDFLAGS = \ $(LLVM_LDFLAGS) \ -no-undefined \ -version-number 1:0 \ + -Wl,--version-script=$(top_srcdir)/src/gallium/targets/opencl/opencl.sym \ $(GC_SECTIONS) \ $(LD_NO_UNDEFINED) diff --git a/src/gallium/targets/opencl/opencl.sym b/src/gallium/targets/opencl/opencl.sym new file mode 100644 index 00000000000..ee8aacf4806 --- /dev/null +++ b/src/gallium/targets/opencl/opencl.sym @@ -0,0 +1,6 @@ +{ + global: + cl*; + local: + *; +};