From 1c265fc263ee738a4dffdd1de6fc008ad7ec5414 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Tue, 3 Jul 2018 11:48:04 +0200 Subject: qt5: default to -std=c++11 At least c++11 is needed. Qt checks for the latest supported standard but it's not used: - during configure where it is needed for ICU - for examples and at least qtserialbus needs c++11 Signed-off-by: Michael Olbrich --- rules/qt5.make | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rules/qt5.make') diff --git a/rules/qt5.make b/rules/qt5.make index 4fcbcf757..e4449292a 100644 --- a/rules/qt5.make +++ b/rules/qt5.make @@ -222,6 +222,10 @@ QT5_CONF_OPT += \ --$(call ptx/endis, PTXCONF_QT5_XRENDER)-xrender \ --$(call ptx/endis, PTXCONF_QT5_XV)-xvideo \ +# change default C++ standard +# the detected standard is not used for configure and examples +QT5_CXXFLAGS := -std=c++11 + ifdef PTXCONF_QT5_MODULE_QTBASE_SQL_MYSQL QT5_CONF_OPT += -mysql_config $(SYSROOT)/usr/bin/mysql_config endif -- cgit v1.2.3