diff options
author | Mikhail Svetkin <mikhail.svetkin@qt.io> | 2018-04-10 15:03:11 +0200 |
---|---|---|
committer | Mikhail Svetkin <mikhail.svetkin@qt.io> | 2018-04-27 06:47:35 +0000 |
commit | 194a40449039a1e1dad2f370255698172bf5e7f7 (patch) | |
tree | f5d33472cea9afbc500ef5a34f3f724704dd2bfe /config_help.txt | |
parent | 18d26192242873625a3132d0ad6b9342226d14bb (diff) |
Make the use of -fdata-sections and --gc-sections more generic in Qt
Add qmake feature and configure option, which optimze the size of static
exectuable. Use for static build.
Enabled via configure --gc-binaries, or CONFIG += gc-binaries in 3rd party
projects.
Change-Id: I3c25b02caaef6a4afc6019afc9c67122dd11696d
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'config_help.txt')
-rw-r--r-- | config_help.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config_help.txt b/config_help.txt index c606ffb579..5b32eb183f 100644 --- a/config_help.txt +++ b/config_help.txt @@ -98,6 +98,9 @@ Build options: -gdb-index ........... Index the debug info to speed up GDB [no; auto if -developer-build with debug info] -strip ............... Strip release binaries of unneeded symbols [yes] + -gc-binaries ......... Place each function or data item into its own section + and enable linker garbage collection of unused + sections. [auto for static builds, otherwise no] -force-asserts ....... Enable Q_ASSERT even in release builds [no] -developer-build ..... Compile and link Qt for developing Qt itself (exports for auto-tests, extra checks, etc.) [no] |