summaryrefslogtreecommitdiffstats
path: root/rules/qt5.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-07-03 11:48:04 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-07-03 11:50:37 +0200
commit1c265fc263ee738a4dffdd1de6fc008ad7ec5414 (patch)
tree8c6e7cf6f85f472fb9cdaf5376756cff85c1e002 /rules/qt5.make
parentbe068f3ac854d8a44cace1b9fcfadf419e4bfd51 (diff)
downloadptxdist-1c265fc263ee738a4dffdd1de6fc008ad7ec5414.tar.gz
ptxdist-1c265fc263ee738a4dffdd1de6fc008ad7ec5414.tar.xz
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 <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/qt5.make')
-rw-r--r--rules/qt5.make4
1 files changed, 4 insertions, 0 deletions
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