]> ToastFreeware Gitweb - toast/confclerk.git/blobdiff - src/global.pri
Make sure we build with -std=c++98 (under Unix and Qt4)
[toast/confclerk.git] / src / global.pri
index 5ab629ab2eb895ecfac591b8b1054e1c144e6f0e..27e691453aa9ec2330803dd7a60248d4267d5cfe 100644 (file)
@@ -24,3 +24,12 @@ contains( DISTRO, [Ii]nternet ) {
     }
 }
 
+# gcc 4.2.1 on Maemo doesn't understand anything newer then c++98.
+# make sure we explicitly add the flag even when building
+# with a modern compiler.
+# Only under Qt4 because Qt5 needs c++11
+unix: {
+    equals( QT_MAJOR_VERSION, 4 ) {
+        QMAKE_CXXFLAGS += -std=c++98
+    }
+}