summaryrefslogtreecommitdiff
path: root/solenv/inc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-12-10 12:47:27 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-12-10 13:57:43 +0100
commit217ba33cb02c86ea25bf62748e1bcbdd1218795b (patch)
treea9d7cb860285c2cb244aee99ab577c00a64553c2 /solenv/inc
parent4479a8896abfc10de2166623c743a73c9e11bb1e (diff)
Try -std=c++11 if -std=gnu++0x does not work
...like when using Clang against GCC 4.7 headers that unconditionally use __float128 which is a GNU extension that Clang does not support. Change-Id: Ie27b5f17df4a10c9682fa750677e6cd8ef5eeeaf
Diffstat (limited to 'solenv/inc')
-rw-r--r--solenv/inc/unxgcc.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/solenv/inc/unxgcc.mk b/solenv/inc/unxgcc.mk
index 04419863f32a..f3f03d66eb83 100644
--- a/solenv/inc/unxgcc.mk
+++ b/solenv/inc/unxgcc.mk
@@ -100,7 +100,7 @@ CFLAGSCXX += -fno-threadsafe-statics
CFLAGSCXX+=-fvisibility-inlines-hidden
.ENDIF # "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
.IF "$(HAVE_CXX0X)" == "TRUE"
-CFLAGSCXX+=-std=gnu++0x
+CFLAGSCXX+=$(CXXFLAGS_CXX11)
.IF "$(GCCNUMVER)" <= "000400059999"
CFLAGSCXX+=-Wno-deprecated-declarations
.ENDIF