Mesa (master): autotools: Set C++ visibility flags on Intel

Dylan Baker dbaker at kemper.freedesktop.org
Fri Nov 10 17:42:24 UTC 2017


Module: Mesa
Branch: master
Commit: 854455498c0370e959c0bb25680641e05faea3e2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=854455498c0370e959c0bb25680641e05faea3e2

Author: Dylan Baker <dylan at pnwbakers.com>
Date:   Thu Nov  9 13:49:52 2017 -0800

autotools: Set C++ visibility flags on Intel

These flags are set for C sources, but not C++. This causes symbol
visibility leaks from the C++ parts of the Intel compiler.

Fixes: 700bebb958e93f4d ("i965: Move the back-end compiler to src/intel/compiler")
Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
Reviewed-by: Matt Turner <mattst88 at gmail.com>

---

 src/intel/Makefile.am | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/intel/Makefile.am b/src/intel/Makefile.am
index a34e301449..6a5e393f17 100644
--- a/src/intel/Makefile.am
+++ b/src/intel/Makefile.am
@@ -46,6 +46,9 @@ AM_CFLAGS = \
 	$(VISIBILITY_CFLAGS) \
 	$(WNO_OVERRIDE_INIT)
 
+AM_CXXFLAGS = \
+	$(VISIBILITY_CXXFLAGS)
+
 MKDIR_GEN = $(AM_V_at)$(MKDIR_P) $(@D)
 PYTHON_GEN = $(AM_V_GEN)$(PYTHON2) $(PYTHON_FLAGS)
 




More information about the mesa-commit mailing list