[Mesa-dev] [RFC PATCH 1/5] mesa: Compile all C++ users of ralloc as C++11.
Francisco Jerez
currojerez at riseup.net
Thu Oct 10 05:32:30 CEST 2013
---
src/glsl/Makefile.am | 3 ++-
src/mesa/Makefile.am | 3 ++-
src/mesa/drivers/dri/i965/Makefile.am | 3 ++-
src/mesa/libdricore/Makefile.am | 2 ++
src/mesa/program/Makefile.am | 6 ++++--
5 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/src/glsl/Makefile.am b/src/glsl/Makefile.am
index cbf253c..1f7520c 100644
--- a/src/glsl/Makefile.am
+++ b/src/glsl/Makefile.am
@@ -27,7 +27,8 @@ AM_CPPFLAGS = \
-I$(top_srcdir)/src/gtest/include \
$(DEFINES)
AM_CFLAGS = $(VISIBILITY_CFLAGS)
-AM_CXXFLAGS = $(VISIBILITY_CXXFLAGS)
+AM_CXXFLAGS = $(VISIBILITY_CXXFLAGS) \
+ -std=c++11
include Makefile.sources
diff --git a/src/mesa/Makefile.am b/src/mesa/Makefile.am
index e9c16e7..867507c 100644
--- a/src/mesa/Makefile.am
+++ b/src/mesa/Makefile.am
@@ -95,7 +95,8 @@ include Makefile.sources
AM_CPPFLAGS = $(DEFINES) $(INCLUDE_DIRS)
AM_CFLAGS = $(LLVM_CFLAGS) $(VISIBILITY_CFLAGS)
-AM_CXXFLAGS = $(LLVM_CFLAGS) $(VISIBILITY_CXXFLAGS)
+AM_CXXFLAGS = $(LLVM_CFLAGS) $(VISIBILITY_CXXFLAGS) \
+ -std=c++11
MESA_ASM_FILES_FOR_ARCH =
diff --git a/src/mesa/drivers/dri/i965/Makefile.am b/src/mesa/drivers/dri/i965/Makefile.am
index 71442dd..b0eaa9f 100644
--- a/src/mesa/drivers/dri/i965/Makefile.am
+++ b/src/mesa/drivers/dri/i965/Makefile.am
@@ -36,7 +36,8 @@ AM_CFLAGS = \
$(VISIBILITY_CFLAGS) \
$(INTEL_CFLAGS)
-AM_CXXFLAGS = $(AM_CFLAGS)
+AM_CXXFLAGS = $(AM_CFLAGS) \
+ -std=c++11
dridir = $(DRI_DRIVER_INSTALL_DIR)
diff --git a/src/mesa/libdricore/Makefile.am b/src/mesa/libdricore/Makefile.am
index 686e478..608b9ca 100644
--- a/src/mesa/libdricore/Makefile.am
+++ b/src/mesa/libdricore/Makefile.am
@@ -26,6 +26,8 @@ include ../../glsl/Makefile.sources
noinst_PROGRAMS =
+AM_CXXFLAGS = -std=c++11
+
AM_CPPFLAGS = \
$(INCLUDE_DIRS) \
$(DEFINES) \
diff --git a/src/mesa/program/Makefile.am b/src/mesa/program/Makefile.am
index ab565e2..575e412 100644
--- a/src/mesa/program/Makefile.am
+++ b/src/mesa/program/Makefile.am
@@ -23,9 +23,11 @@ include ../Makefile.sources
AM_CPPFLAGS = $(DEFINES) $(INCLUDE_DIRS)
AM_CFLAGS = $(VISIBILITY_CFLAGS)
-AM_CXXFLAGS = $(VISIBILITY_CXXFLAGS)
+AM_CXXFLAGS = $(VISIBILITY_CXXFLAGS) \
+ -std=c++11
libdricore_program_la_CFLAGS = $(NOVISIBILITY_CFLAGS)
-libdricore_program_la_CXXFLAGS = $(NOVISIBILITY_CXXFLAGS)
+libdricore_program_la_CXXFLAGS = $(NOVISIBILITY_CXXFLAGS) \
+ -std=c++11
SRCDIR = $(top_srcdir)/src/mesa/
BUILDDIR = $(top_builddir)/src/mesa/
--
1.8.3.4
More information about the mesa-dev
mailing list