[Mesa-dev] [PATCH 12/16] targets/libgl-xlib: hide all the exported symbol mayhem

Emil Velikov emil.l.velikov at gmail.com
Sat Apr 19 14:45:05 PDT 2014


humble ping

On 05/04/14 02:47, Emil Velikov wrote:
> TODO:
>  - properly cleanup all the _glapi* symbols
>  - XMesa*
>  -- no sign of the header even being distributed
>  -- mesa-demos uses it to the point that the relevant code is not compiled
>  -- the classic driver (x11) exibits the same issues
> 
> Brian,
> 
> Do you know of any users of the XMesa* functions outside of mesa-demos ?
> AFAICS we should be safe with dropping PUBLIC although I may have missed
> something. As a follow up someone can cleanup all the mesa-demos code :)
> 
> Cc: Brian Paul <brianp at vmware.com>
> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
> ---
>  src/gallium/targets/libgl-xlib/Makefile.am    | 1 +
>  src/gallium/targets/libgl-xlib/libgl-xlib.sym | 6 ++++++
>  2 files changed, 7 insertions(+)
>  create mode 100644 src/gallium/targets/libgl-xlib/libgl-xlib.sym
> 
> diff --git a/src/gallium/targets/libgl-xlib/Makefile.am b/src/gallium/targets/libgl-xlib/Makefile.am
> index ef3d23e..d284a17 100644
> --- a/src/gallium/targets/libgl-xlib/Makefile.am
> +++ b/src/gallium/targets/libgl-xlib/Makefile.am
> @@ -47,6 +47,7 @@ libGL_la_SOURCES = xlib.c
>  libGL_la_LDFLAGS = \
>  	-no-undefined \
>  	-version-number $(GL_MAJOR):$(GL_MINOR):$(GL_TINY) \
> +	-Wl,--version-script=$(top_srcdir)/src/gallium/targets/libgl-xlib/libgl-xlib.sym \
>  	$(GC_SECTIONS) \
>  	-Wl,--no-undefined
>  
> diff --git a/src/gallium/targets/libgl-xlib/libgl-xlib.sym b/src/gallium/targets/libgl-xlib/libgl-xlib.sym
> new file mode 100644
> index 0000000..d6cd23d
> --- /dev/null
> +++ b/src/gallium/targets/libgl-xlib/libgl-xlib.sym
> @@ -0,0 +1,6 @@
> +{
> +	global:
> +		gl*;
> +	local:
> +		*;
> +};
> 



More information about the mesa-dev mailing list