Use -ffunction-sections in libbootstrap.a

So that the linker discards unused functions too. Some of our .cpp are
way too big

Change-Id: I1a2685be6a5e7fd3cf34f18d545483c63c2343dd
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
bb10
Thiago Macieira 2012-10-27 19:28:25 -07:00 committed by The Qt Project
parent 6497649730
commit 9fb536adda
1 changed files with 1 additions and 0 deletions

View File

@ -114,6 +114,7 @@ macx: {
../../corelib/kernel/qcore_mac.cpp
LIBS += -framework CoreServices
}
*-g++*: QMAKE_CXXFLAGS += -ffunction-sections
if(contains(QT_CONFIG, zlib)|cross_compile):include(../../3rdparty/zlib.pri)
else:include(../../3rdparty/zlib_dependency.pri)