[Mesa-dev] [PATCH 13/16] targets/opencl: hide all the exported llvm/clang mayhem... hopefully

Francisco Jerez currojerez at riseup.net
Sat Apr 5 03:14:23 PDT 2014


Emil Velikov <emil.l.velikov at gmail.com> writes:

> 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 <thomas.stellard at amd.com>
> Cc: Francisco Jerez <currojerez at riseup.net>
> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>

Looks OK to me,

Reviewed-by: Francisco Jerez <currojerez at riseup.net>

> ---
>  src/gallium/targets/opencl/Makefile.am | 1 +
>  src/gallium/targets/opencl/opencl.sym  | 6 ++++++
>  2 files changed, 7 insertions(+)
>  create mode 100644 src/gallium/targets/opencl/opencl.sym
>
> diff --git a/src/gallium/targets/opencl/Makefile.am b/src/gallium/targets/opencl/Makefile.am
> index 57092fb..287d858 100644
> --- a/src/gallium/targets/opencl/Makefile.am
> +++ b/src/gallium/targets/opencl/Makefile.am
> @@ -6,6 +6,7 @@ lib at 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) \
>  	-Wl,--no-undefined
>  
> diff --git a/src/gallium/targets/opencl/opencl.sym b/src/gallium/targets/opencl/opencl.sym
> new file mode 100644
> index 0000000..ee8aacf
> --- /dev/null
> +++ b/src/gallium/targets/opencl/opencl.sym
> @@ -0,0 +1,6 @@
> +{
> +	global:
> +		cl*;
> +	local:
> +		*;
> +};
> -- 
> 1.9.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 229 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140405/6cd1f015/attachment.sig>


More information about the mesa-dev mailing list