mapi: automake: set VISIBILITY_CFLAGS for shared glapi
authorJonathan Gray <jsg@jsg.id.au>
Sat, 22 Oct 2016 07:19:53 +0000 (18:19 +1100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 24 Oct 2016 10:29:23 +0000 (11:29 +0100)
commit907ace57986733add2aebfa9dd7c83c67efed70e
tree66be46e4f362fc7ca3aa974df8cc88c65b167d1c
parent8df581520a823564be0ab5af7dbb7d501b1c9670
mapi: automake: set VISIBILITY_CFLAGS for shared glapi

shared glapi was previously built without setting CFLAGS for
AM_CFLAGS and VISIBILITY_CFLAGS.

This resulted in symbols being exported that shouldn't be.

The x86 and sparc assembly versions of the dispatch table partially
mitigated this by using .hidden.  Otherwise shared_dispatch_stub_*
were being exported.

Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Cc: "11.2 12.0 13.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/mapi/Makefile.am