summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/qt_app.prf
diff options
context:
space:
mode:
Diffstat (limited to 'mkspecs/features/qt_app.prf')
-rw-r--r--mkspecs/features/qt_app.prf3
1 files changed, 3 insertions, 0 deletions
diff --git a/mkspecs/features/qt_app.prf b/mkspecs/features/qt_app.prf
index a4fcb7d484..0f83fd7270 100644
--- a/mkspecs/features/qt_app.prf
+++ b/mkspecs/features/qt_app.prf
@@ -16,6 +16,9 @@ DESTDIR = $$MODULE_BASE_OUTDIR/bin
isEmpty(QMAKE_INFO_PLIST): CONFIG -= app_bundle
+# This decreases the binary size for tools if statically linked
+QMAKE_LFLAGS += $$QMAKE_LFLAGS_GCSECTIONS
+
host_build: QT -= gui # no host tool will ever use gui
host_build:force_bootstrap {
!build_pass: CONFIG += release