summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2014-05-11 17:43:51 -0700
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-19 19:33:15 +0200
commite91e502ab6424be12c3448431a65e7d617ab5571 (patch)
treeadbf8903a0ddc0d8b988aa3c1277fbe0132d5776 /tools
parent199b2594ff08b8341126165f17bbef8af54351ec (diff)
Make qmake also use -ffunction-sections
This might lead to a smaller binary if we use --gc-sections too. Change-Id: I7e17b956a85ecefc3e187054848393d2855152b6 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/configure/configureapp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp
index 06f78b1116..0e3bbcd3fb 100644
--- a/tools/configure/configureapp.cpp
+++ b/tools/configure/configureapp.cpp
@@ -4039,8 +4039,8 @@ 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
<< "QTOBJS = qfilesystemengine_win.o \\" << endl
<< " qfilesystemiterator_win.o \\" << endl
<< " qfsfileengine_win.o \\" << endl