glsl/build: build builtin_compiler with VISIBILITY_CFLAGS
authorChia-I Wu <olvaffe@gmail.com>
Thu, 11 Jul 2013 01:14:16 +0000 (09:14 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Fri, 12 Jul 2013 01:42:25 +0000 (09:42 +0800)
libglslcore.la and libglcpp.la that are built with builtin_compiler are also
linked to by drivers not using libdricore.  Since there is no public symbol in
them, it is better to mark all symbols hidden.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/glsl/builtin_compiler/Makefile.am

index e11a17fbed28957b29161660c89dd47d67a5e6c7..823d546e15225670a47711d34313817e0d534b2a 100644 (file)
@@ -26,7 +26,8 @@ AM_CFLAGS = \
        -I $(top_srcdir)/src/mesa \
        -I $(GLSL_SRCDIR) \
        -I $(GLSL_SRCDIR)/glcpp \
-       -I $(GLSL_BUILDDIR)
+       -I $(GLSL_BUILDDIR) \
+       $(VISIBILITY_CFLAGS)
 
 if CROSS_COMPILING
 proxyCC = @CC_FOR_BUILD@