diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2014-05-11 17:43:51 -0700 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-05-19 19:33:15 +0200 |
commit | e91e502ab6424be12c3448431a65e7d617ab5571 (patch) | |
tree | adbf8903a0ddc0d8b988aa3c1277fbe0132d5776 /tools | |
parent | 199b2594ff08b8341126165f17bbef8af54351ec (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.cpp | 4 |
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 |