autotools: Set C++ visibility flags on Intel
authorDylan Baker <dylan@pnwbakers.com>
Thu, 9 Nov 2017 21:49:52 +0000 (13:49 -0800)
committerDylan Baker <dylan@pnwbakers.com>
Fri, 10 Nov 2017 17:41:55 +0000 (09:41 -0800)
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@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/intel/Makefile.am

index a34e301449742a84759aad73fb52236c5147d492..6a5e393f175a9362847d4aa5cfb184809be7d027 100644 (file)
@@ -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)