Qt4 fails to configure ICU with ICU6X.
PATCH 1/1 Qt4 fails to configure ICU with ICU6X.
Remove -std=gnu++98 from QMAKE_CXXFLAGS and add where necessary.
Signed-off-by Michael Gloff <[email protected]>
--- recipes-qt4/qt4/qt4-4.8.7.inc | 3 ++- .../0037-fix-configure-with-icu60.patch | 26 +++++++++++++++++++ recipes-qt4/qt4/qt4-native.inc | 2 +- 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 recipes-qt4/qt4/qt4-4.8.7/0037-fix-configure-with-icu60.patch
recipes-qt4/qt4/qt4-4.8.7.inc +2 -1
@@ -27,6 +27,7 @@ SRC_URI = "http://download.qt-project.org/official_releases/qt/4.8/${PV}/qt-ever file://0034-Fix-kmap2qmap-build-with-clang.patch \ file://0035-Add-nios2-support.patch \ file://0036-qt-everywhere-opensource-src-4.8.7-gcc6.patch \ + file://0037-fix-configure-with-icu60.patch \ file://gcc-version.patch \ file://Fix-QWSLock-invalid-argument-logs.patch \ file://add_check_for_aarch64_32.patch \
@@ -46,7 +47,7 @@ UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)/" S = "${WORKDIR}/qt-everywhere-opensource-src-${PV}" # workaround for class std::auto_ptr' is deprecated with gcc-6 -CXXFLAGS += "-std=gnu++98 -Wno-deprecated -DUCHAR_TYPE=wchar_t" +CXXFLAGS += "-Wno-deprecated -DUCHAR_TYPE=wchar_t" # disable webkit for mips64 n32 temporarily that fails to compile, # qt upstream defect:
recipes-qt4/qt4/qt4-4.8.7/0037-fix-configure-with-icu60.patch new file +26 -0
@@ -0,0 +1,26 @@ +diff --git a/src/3rdparty/javascriptcore/JavaScriptCore/JavaScriptCore.pri b/src/3rdparty/javascriptcore/JavaScriptCore/JavaScriptCore.pri +index 847f69c358..2360f6259e 100644 +--- a/src/3rdparty/javascriptcore/JavaScriptCore/JavaScriptCore.pri ++++ b/src/3rdparty/javascriptcore/JavaScriptCore/JavaScriptCore.pri +@@ -234,3 +234,4 @@ SOURCES += \ + SOURCES += wtf/TCSystemAlloc.cpp + } + ++QMAKE_CXXFLAGS += -std=gnu++98 +diff --git a/src/3rdparty/webkit/Source/WebKit.pri b/src/3rdparty/webkit/Source/WebKit.pri +index 01f88a485d..384b1ca349 100644 +--- a/src/3rdparty/webkit/Source/WebKit.pri ++++ b/src/3rdparty/webkit/Source/WebKit.pri +@@ -199,3 +199,4 @@ CONFIG(qt_minimal) { + } + + contains(DEFINES, QT_NO_UITOOLS): CONFIG -= uitools ++QMAKE_CXXFLAGS += -std=gnu++98 +diff --git a/src/plugins/accessible/qaccessiblebase.pri b/src/plugins/accessible/qaccessiblebase.pri +index 95c1fad13a..76693d5fc5 100644 +--- a/src/plugins/accessible/qaccessiblebase.pri ++++ b/src/plugins/accessible/qaccessiblebase.pri +@@ -1,2 +1,3 @@ + target.path += $$[QT_INSTALL_PLUGINS]/accessible + INSTALLS += target ++QMAKE_CXXFLAGS += -std=gnu++98
recipes-qt4/qt4/qt4-native.inc +1 -1
@@ -30,7 +30,7 @@ UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)/" S = "${WORKDIR}/qt-everywhere-opensource-src-${PV}" # workaround for class std::auto_ptr' is deprecated with gcc-6 -CXXFLAGS += "-std=gnu++98 -Wno-deprecated" +CXXFLAGS += "-Wno-deprecated" EXTRA_OECONF = "-prefix ${prefix} \ -bindir ${bindir} \
Signature · 1 line
2.17.0
Quoted 2 lines · Michael Gloff
Remove -std=gnu++98 from
QMAKE_CXXFLAGSand add where necessary.
Thanks, pushed to master.
Alex