Compile qmake and configure.exe in C++11 mode
Since the Qt headers require them now, we need to ensure that happens properly. Change-Id: Ib306f8f647014b399b87ffff13f14196c2c75bef Reviewed-by: Marc Mutz <marc.mutz@kdab.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
This commit is contained in:
parent
f430521392
commit
f5eeadb92d
3
configure
vendored
3
configure
vendored
@ -3980,7 +3980,7 @@ if true; then ###[ '!' -f "$outpath/bin/qmake" ];
|
|||||||
EXTRA_OBJS=
|
EXTRA_OBJS=
|
||||||
EXTRA_SRCS=
|
EXTRA_SRCS=
|
||||||
EXTRA_CFLAGS="\$(QMAKE_CFLAGS) \$(QMAKE_CFLAGS_SPLIT_SECTIONS)"
|
EXTRA_CFLAGS="\$(QMAKE_CFLAGS) \$(QMAKE_CFLAGS_SPLIT_SECTIONS)"
|
||||||
EXTRA_CXXFLAGS="\$(QMAKE_CXXFLAGS) \$(QMAKE_CXXFLAGS_SPLIT_SECTIONS)"
|
EXTRA_CXXFLAGS="\$(QMAKE_CXXFLAGS) \$(QMAKE_CXXFLAGS_CXX11) \$(QMAKE_CXXFLAGS_SPLIT_SECTIONS)"
|
||||||
EXTRA_LFLAGS="\$(QMAKE_LFLAGS) \$(QMAKE_LFLAGS_GCSECTIONS)"
|
EXTRA_LFLAGS="\$(QMAKE_LFLAGS) \$(QMAKE_LFLAGS_GCSECTIONS)"
|
||||||
|
|
||||||
if [ "$PLATFORM" = "irix-cc" ] || [ "$PLATFORM" = "irix-cc-64" ]; then
|
if [ "$PLATFORM" = "irix-cc" ] || [ "$PLATFORM" = "irix-cc-64" ]; then
|
||||||
@ -3993,6 +3993,7 @@ if true; then ###[ '!' -f "$outpath/bin/qmake" ];
|
|||||||
setBootstrapVariable QMAKE_CFLAGS
|
setBootstrapVariable QMAKE_CFLAGS
|
||||||
setBootstrapVariable QMAKE_CFLAGS_SPLIT_SECTIONS
|
setBootstrapVariable QMAKE_CFLAGS_SPLIT_SECTIONS
|
||||||
setBootstrapVariable QMAKE_CXXFLAGS
|
setBootstrapVariable QMAKE_CXXFLAGS
|
||||||
|
setBootstrapVariable QMAKE_CXXFLAGS_CXX11
|
||||||
setBootstrapVariable QMAKE_CXXFLAGS_SPLIT_SECTIONS
|
setBootstrapVariable QMAKE_CXXFLAGS_SPLIT_SECTIONS
|
||||||
setBootstrapVariable QMAKE_LFLAGS
|
setBootstrapVariable QMAKE_LFLAGS
|
||||||
setBootstrapVariable QMAKE_LFLAGS_GCSECTIONS
|
setBootstrapVariable QMAKE_LFLAGS_GCSECTIONS
|
||||||
|
@ -13,7 +13,7 @@ QMKSRC = $(SOURCE_PATH)\qmake
|
|||||||
!if "$(QMAKESPEC)" == "win32-icc"
|
!if "$(QMAKESPEC)" == "win32-icc"
|
||||||
CXX = icl
|
CXX = icl
|
||||||
LINKER = link
|
LINKER = link
|
||||||
CFLAGS_EXTRA = /Zc:forScope
|
CFLAGS_EXTRA = /Zc:forScope /Qstd=c++11
|
||||||
!else
|
!else
|
||||||
CXX = cl
|
CXX = cl
|
||||||
LINKER = link
|
LINKER = link
|
||||||
|
@ -4334,7 +4334,7 @@ void Configure::buildQmake()
|
|||||||
if (dictionary[ "QMAKESPEC" ].startsWith("win32-g++")) {
|
if (dictionary[ "QMAKESPEC" ].startsWith("win32-g++")) {
|
||||||
stream << "QMAKESPEC = $(SOURCE_PATH)\\mkspecs\\" << dictionary[ "QMAKESPEC" ] << endl
|
stream << "QMAKESPEC = $(SOURCE_PATH)\\mkspecs\\" << dictionary[ "QMAKESPEC" ] << endl
|
||||||
<< "EXTRA_CFLAGS = -DUNICODE -ffunction-sections" << endl
|
<< "EXTRA_CFLAGS = -DUNICODE -ffunction-sections" << endl
|
||||||
<< "EXTRA_CXXFLAGS = -DUNICODE -ffunction-sections" << endl
|
<< "EXTRA_CXXFLAGS = -std=c++11 -DUNICODE -ffunction-sections" << endl
|
||||||
<< "EXTRA_LFLAGS = -Wl,--gc-sections" << endl
|
<< "EXTRA_LFLAGS = -Wl,--gc-sections" << endl
|
||||||
<< "QTOBJS = qfilesystemengine_win.o \\" << endl
|
<< "QTOBJS = qfilesystemengine_win.o \\" << endl
|
||||||
<< " qfilesystemiterator_win.o \\" << endl
|
<< " qfilesystemiterator_win.o \\" << endl
|
||||||
|
Loading…
Reference in New Issue
Block a user