File: webkit_qt_hide_symbols.diff

package info (click to toggle)
qtwebkit-opensource-src 5.3.2%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 291,876 kB
  • ctags: 268,746
  • sloc: cpp: 1,358,098; python: 70,286; ansic: 42,964; perl: 35,473; ruby: 12,229; objc: 9,465; xml: 8,396; asm: 3,871; yacc: 2,397; sh: 1,647; makefile: 644; lex: 644; java: 110
file content (28 lines) | stat: -rw-r--r-- 966 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: Modestas Vainius <modax@debian.org>
SUbject: Make hide_symbols to cover all QtWebKit portions
Origin: vendor
Author: Timo Jyrinki <timo@debian.org>
Last-Update: 2013-01-28 (use a similar patch on Qt 5)
Forwarded: no

Almost everything in Source/WebCore/generated was not build with
-fvisibility=hidden resulting into redundantly polluted and huge dynamic symbol
list in libQtWebKit.so.

Therefore, move +hide_symbols configuration parameter upwards in order for it
to cover everything including the offending Source/WebCore/CodeGenerators.pri

--- a/Source/QtWebKit.pro	2012-12-18 19:04:43.000000000 +0000
+++ b/Source/QtWebKit.pro	2013-01-28 08:25:56.342911517 +0000
@@ -7,6 +7,11 @@
 TEMPLATE = subdirs
 CONFIG += ordered
 
+CONFIG(release):!CONFIG(standalone_package) {
+    contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols
+    unix:contains(QT_CONFIG, reduce_relocations):CONFIG += bsymbolic_functions
+}
+
 api.file = api.pri
 SUBDIRS += api