summaryrefslogtreecommitdiffstats
path: root/tools/configure
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2014-05-22 14:24:28 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-22 14:24:28 +0200
commit2064bf6155fda203fe798166e40be9247a20da85 (patch)
tree7b4166afcba07a471cd89bfbedc15e51edfeffdc /tools/configure
parent0127962e4772d6c758b954b2fe1d4b676d366b4c (diff)
parent508b95899d4764d879a01b3990e44ce849cd9abc (diff)
Merge "Merge remote-tracking branch 'origin/stable' into dev" into refs/staging/dev
Diffstat (limited to 'tools/configure')
-rw-r--r--tools/configure/configureapp.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp
index 62243178e7..37bf576d37 100644
--- a/tools/configure/configureapp.cpp
+++ b/tools/configure/configureapp.cpp
@@ -4039,8 +4039,9 @@ void Configure::buildQmake()
stream << "QT_VERSION = " << dictionary["VERSION"] << endl;
if (dictionary[ "QMAKESPEC" ] == QString("win32-g++")) {
stream << "QMAKESPEC = $(SOURCE_PATH)\\mkspecs\\win32-g++" << endl
- << "EXTRA_CFLAGS = -DUNICODE" << endl
- << "EXTRA_CXXFLAGS = -DUNICODE" << endl
+ << "EXTRA_CFLAGS = -DUNICODE -ffunction-sections" << endl
+ << "EXTRA_CXXFLAGS = -DUNICODE -ffunction-sections" << endl
+ << "EXTRA_LFLAGS = -Wl,--gc-sections" << endl
<< "QTOBJS = qfilesystemengine_win.o \\" << endl
<< " qfilesystemiterator_win.o \\" << endl
<< " qfsfileengine_win.o \\" << endl