summaryrefslogtreecommitdiff
path: root/debian/patches/09_qmake_lflags_as-needed.diff
blob: 4a191bf156d07a22627909c10914ba23a88b22f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
author: Fathi Boudra <fabo@debian.org>

workaround as LDFLAGS isn't honored by configure script.
Bug reported to Trolltech.

--- a/configure
+++ b/configure
@@ -463,6 +463,8 @@ mkdir -p "$outpath/config.tests"
 rm -f "$outpath/config.tests/.qmake.cache"
 cp "$QMAKE_VARS_FILE" "$outpath/config.tests/.qmake.cache"
 
+QMakeVar add QMAKE_LFLAGS -Wl,--as-needed
+
 QMakeVar add styles "cde mac motif plastique cleanlooks windows"
 QMakeVar add decorations "default windows styled"
 QMakeVar add gfx-drivers "linuxfb"