summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2014-05-11 17:43:51 -0700
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-19 19:33:15 +0200
commite91e502ab6424be12c3448431a65e7d617ab5571 (patch)
treeadbf8903a0ddc0d8b988aa3c1277fbe0132d5776 /configure
parent199b2594ff08b8341126165f17bbef8af54351ec (diff)
Make qmake also use -ffunction-sections
This might lead to a smaller binary if we use --gc-sections too. Change-Id: I7e17b956a85ecefc3e187054848393d2855152b6 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure b/configure
index e7e4f4f59b..d4eb6d0dc0 100755
--- a/configure
+++ b/configure
@@ -3662,8 +3662,8 @@ if true; then ###[ '!' -f "$outpath/bin/qmake" ];
echo "########################################################################" >> "$mkfile"
EXTRA_OBJS=
EXTRA_SRCS=
- EXTRA_CFLAGS="\$(QMAKE_CFLAGS)"
- EXTRA_CXXFLAGS="\$(QMAKE_CXXFLAGS)"
+ EXTRA_CFLAGS="\$(QMAKE_CFLAGS) \$(QMAKE_CFLAGS_SPLIT_SECTIONS)"
+ EXTRA_CXXFLAGS="\$(QMAKE_CXXFLAGS) \$(QMAKE_CXXFLAGS_SPLIT_SECTIONS)"
EXTRA_LFLAGS="\$(QMAKE_LFLAGS)"
if [ "$PLATFORM" = "irix-cc" ] || [ "$PLATFORM" = "irix-cc-64" ]; then
@@ -3674,7 +3674,9 @@ if true; then ###[ '!' -f "$outpath/bin/qmake" ];
setBootstrapVariable QMAKE_CC CC "$CC_TRANSFORM"
setBootstrapVariable QMAKE_CXX CXX "$CC_TRANSFORM"
setBootstrapVariable QMAKE_CFLAGS
+ setBootstrapVariable QMAKE_CFLAGS_SPLIT_SECTIONS
setBootstrapVariable QMAKE_CXXFLAGS
+ setBootstrapVariable QMAKE_CXXFLAGS_SPLIT_SECTIONS
setBootstrapVariable QMAKE_LFLAGS
if [ "$CFG_RELEASE_QMAKE" = "yes" ]; then