diff options
author | Ralf Nolden <nolden@kde.org> | 2016-06-15 18:19:39 +0200 |
---|---|---|
committer | Ralf Nolden <nolden@kde.org> | 2016-06-15 19:17:35 +0000 |
commit | 792947da7e366c30ce1ecf0a365de6cf113fc35e (patch) | |
tree | 46e9f14954938e26b124e16f70e839bfd9ac6a55 /mkspecs/common/bsd/bsd.conf | |
parent | b07736c0bc5507e663463ff8f3e3bbb905e1acc9 (diff) |
Common BSD: Add --gc-sections ld flags
As common bsd's are using the -ffunction-sections flags from
mkspecs/common/gcc-base.conf, also use the --gc-sections ld flags
like Linux as all are using GNU ld as their linker and all are
capable of using it. The last remaining problems with --gc-sections
removing the .name sections providing the OS tags for distinction of
the execution layer were solved with NetBSD 6.0 and OpenBSD 5.4, see
http://gnats.netbsd.org/40401 and http://www.openbsd.org/plus54.html
so this option can safely be used now to reduce the size of moc and rcc
tools.
Change-Id: I74ccd4f6bc607f6d82d32fc864875f26b26bf167
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'mkspecs/common/bsd/bsd.conf')
-rw-r--r-- | mkspecs/common/bsd/bsd.conf | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mkspecs/common/bsd/bsd.conf b/mkspecs/common/bsd/bsd.conf index 5af6ba66b7..390dfc58d2 100644 --- a/mkspecs/common/bsd/bsd.conf +++ b/mkspecs/common/bsd/bsd.conf @@ -12,6 +12,7 @@ QMAKE_CFLAGS_THREAD = -pthread QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD QMAKE_LFLAGS_THREAD = -pthread +QMAKE_LFLAGS_GCSECTIONS = -Wl,--gc-sections QMAKE_LIBS = QMAKE_LIBS_DYNLOAD = |