gallium/build: Fix visibility CFLAGS in automake
authorMaarten Lankhorst <m.b.lankhorst@gmail.com>
Thu, 21 Feb 2013 17:07:52 +0000 (18:07 +0100)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Sat, 16 Mar 2013 11:45:22 +0000 (12:45 +0100)
v2: Andreas Boll <andreas.boll.dev@gmail.com>
    - Fix formatting - use one CFLAG per line

NOTE: This is a candidate for the 9.1 branch.

Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=59238
Reviewed-by: Andreas Boll <andreas.boll.dev@gmail.com>
src/gallium/auxiliary/Makefile.am
src/gallium/drivers/rbug/Makefile.am
src/gallium/drivers/svga/Makefile.am
src/gallium/drivers/trace/Makefile.am
src/gallium/state_trackers/xa/Makefile.am
src/gallium/winsys/svga/drm/Makefile.am

index a4eee4773c208472590f89b2294ca7243e169db5..f14279b4f9155b1068da1bd2c09859c0490a58d7 100644 (file)
@@ -7,7 +7,10 @@ noinst_LTLIBRARIES = libgallium.la
 
 AM_CFLAGS = \
        -I$(top_srcdir)/src/gallium/auxiliary/util \
-       $(GALLIUM_CFLAGS)
+       $(GALLIUM_CFLAGS) \
+       $(VISIBILITY_CFLAGS)
+
+AM_CXXFLAGS = $(VISIBILITY_CXXFLAGS)
 
 libgallium_la_SOURCES = \
        $(C_SOURCES) \
@@ -18,7 +21,7 @@ if HAVE_MESA_LLVM
 AM_CFLAGS += \
        $(LLVM_CFLAGS)
 
-AM_CXXFLAGS = \
+AM_CXXFLAGS += \
        $(GALLIUM_CFLAGS) \
        $(LLVM_CXXFLAGS)
 
index 655bfe1e40ac47e715c8c530d18f4d17fb1e0874..3c1a8b5f875cd0d938e92b85388362e4b5d027a7 100644 (file)
@@ -30,6 +30,7 @@ noinst_LTLIBRARIES = librbug.la
 # preprocessor is determined by the ordering of the -I flags.
 AM_CFLAGS = \
        $(GALLIUM_CFLAGS) \
+       $(VISIBILITY_CFLAGS) \
        -I$(top_srcdir)/src/gallium/drivers \
        -I$(top_srcdir)/include
 
index fdaa3c8ebc4971d6867b71c74053fb632700da4b..7eacd90c0ec992c45f0a7037c84b108fdbb0ae3e 100644 (file)
@@ -29,6 +29,8 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/include \
        $(GALLIUM_CFLAGS)
 
+AM_CFLAGS = $(VISIBILITY_CFLAGS)
+
 #On some systems -std= must be added to CFLAGS to be the last -std=
 CFLAGS += -std=gnu99
 
index a9e1457d33e951720f015a7c2f3f6d46ceeceeba..984ead4d7abb51ef273368f124201174ecdb5418 100644 (file)
@@ -1,7 +1,8 @@
 include $(top_srcdir)/src/gallium/Automake.inc
 
 AM_CFLAGS = \
-       $(GALLIUM_CFLAGS)
+       $(GALLIUM_CFLAGS) \
+       $(VISIBILITY_CFLAGS)
 
 noinst_LTLIBRARIES = libtrace.la
 
index 5b53ef96f14ca0f603f81e0e06e6201eab1f7017..57d55c4a91ee928b018027676e7bd00ab8111abd 100644 (file)
@@ -24,7 +24,9 @@ include $(top_srcdir)/src/gallium/Automake.inc
 
 AM_CFLAGS = \
        -Wall -pedantic \
-       $(GALLIUM_CFLAGS)
+       $(GALLIUM_CFLAGS) \
+       $(VISIBILITY_CFLAGS)
+
 AM_CPPFLAGS = \
        -I$(top_srcdir)/src/gallium/ \
        -I$(top_srcdir)/src/gallium/winsys \
index 53bbcc244fdc5edd135f2204c7137e9260a7a049..d7ada3c6b7a0e1c4a23c1a2b064e97846067c41a 100644 (file)
@@ -31,6 +31,8 @@ AM_CPPFLAGS = \
        $(GALLIUM_CFLAGS) \
        $(LIBDRM_CFLAGS)
 
+AM_CFLAGS = $(VISIBILITY_CFLAGS)
+
 #On some systems -std= must be added to CFLAGS to be the last -std=
 CFLAGS += -std=gnu99 -D_FILE_OFFSET_BITS=64