mesa/st/tests: Correct build flags and force -std=c++11
authorGert Wollny <gw.fossdev@gmail.com>
Wed, 13 Sep 2017 13:03:34 +0000 (15:03 +0200)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 15 Sep 2017 12:56:28 +0000 (13:56 +0100)
Include src/gallium/Automake.inc, correct the build flags accordingly.

Force -std=c++11 (extensively used by the test) as otherwise it gets
defined only when building against llvm >= 3.9.

Fixes: 7be6d8fe12 ("mesa/st: glsl_to_tgsi: add tests for the new
temporary lifetime tracker")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102665
Reviewed-by: Emil Velikov <emil.velikov@collabora.com> (v1)
src/mesa/state_tracker/tests/Makefile.am

index cd610e0adfaa5ad59dd3b4951af1b55072c7caf7..f32957608e730d93331d0e022ad6ea1ff4ae1d3d 100644 (file)
@@ -1,18 +1,17 @@
+include $(top_srcdir)/src/gallium/Automake.inc
+
 AM_CFLAGS = \
        $(PTHREAD_CFLAGS)
 
 AM_CXXFLAGS = \
-       $(LLVM_CXXFLAGS)
+       $(GALLIUM_DRIVER_CXXFLAGS) \
+       -std=c++11
 
 AM_CPPFLAGS = \
        -I$(top_srcdir)/src/gtest/include \
-       -I$(top_srcdir)/src \
        -I$(top_srcdir)/src/mapi \
        -I$(top_builddir)/src/mesa \
        -I$(top_srcdir)/src/mesa \
-       -I$(top_srcdir)/include \
-       -I$(top_srcdir)/src/gallium/include \
-       -I$(top_srcdir)/src/gallium/auxiliary \
        -I$(top_builddir)/src/compiler/glsl \
        $(DEFINES)
 
@@ -32,7 +31,4 @@ st_renumerate_test_LDADD = \
        $(top_builddir)/src/util/libmesautil.la \
        $(top_builddir)/src/gtest/libgtest.la \
        $(GALLIUM_COMMON_LIB_DEPS) \
-       $(LIBUNWIND_LIBS) \
-       $(LLVM_LIBS) \
-       $(PTHREAD_LIBS) \
-       $(DLOPEN_LIBS)
+       $(LLVM_LIBS)