diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2012-10-27 19:28:25 -0700 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-30 04:29:18 +0100 |
commit | 9fb536adda4b0c87aa28b8549715e3762ad2a177 (patch) | |
tree | f35a0f32c7387d4c72c21694ba2d6e901fcb4e05 /src/tools/bootstrap/bootstrap.pro | |
parent | 6497649730daeab5d3dfac7e806105e99a237656 (diff) |
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>
Diffstat (limited to 'src/tools/bootstrap/bootstrap.pro')
-rw-r--r-- | src/tools/bootstrap/bootstrap.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/bootstrap/bootstrap.pro b/src/tools/bootstrap/bootstrap.pro index 19c0005bcc..07c4a10573 100644 --- a/src/tools/bootstrap/bootstrap.pro +++ b/src/tools/bootstrap/bootstrap.pro @@ -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) |