Use -ffunction-sections in libbootstrap.a
authorThiago Macieira <thiago.macieira@intel.com>
Sun, 28 Oct 2012 02:28:25 +0000 (19:28 -0700)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 30 Oct 2012 03:29:18 +0000 (04:29 +0100)
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>
src/tools/bootstrap/bootstrap.pro

index 19c0005..07c4a10 100644 (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)