build: Build src/glsl with visibility CFLAGS
authorMatt Turner <mattst88@gmail.com>
Thu, 27 Sep 2012 20:13:25 +0000 (13:13 -0700)
committerMatt Turner <mattst88@gmail.com>
Mon, 1 Oct 2012 22:23:04 +0000 (15:23 -0700)
src/glsl/Makefile.am

index 20639c93d2343f5d23ef2090c7822036550af21c..1ecc0036c901f0db2582ff57dd8ae567c2ef0153 100644 (file)
@@ -23,7 +23,7 @@
 # builtin_compiler is built before libglsl to generate builtin_function.cpp for libglsl.
 # For this to work, a dummy version of builtin_function.cpp, builtin_stubs.cpp, is used.
 
-AM_CFLAGS = \
+AM_CPPFLAGS = \
        -I$(top_srcdir)/include \
        -I$(top_srcdir)/src/mapi \
        -I$(top_srcdir)/src/mesa/ \
@@ -31,8 +31,8 @@ AM_CFLAGS = \
        $(DEFINES) \
        $(LIBRARY_DEFINES) \
        $(API_DEFINES)
-
-AM_CXXFLAGS = $(AM_CFLAGS)
+AM_CFLAGS = $(VISIBILITY_CFLAGS)
+AM_CXXFLAGS = $(VISIBILITY_CXXFLAGS)
 
 AM_LFLAGS = --nounistd -o$(LEX_OUTPUT_ROOT).c