Make hide_symbols to cover all QtWebKit portions
authorModestas Vainius <modax@debian.org>
Tue, 1 Nov 2016 12:04:32 +0000 (12:04 +0000)
committerDmitry Shachnev <mitya57@debian.org>
Tue, 1 Nov 2016 12:04:32 +0000 (12:04 +0000)
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

Gbp-Pq: Name webkit_qt_hide_symbols.diff

Source/QtWebKit.pro

index 7cfa405fb8c0ccf0c67b6f804d07ff0fdbb65adf..a50051d5c209740448a88231761e8230d4f3962e 100644 (file)
@@ -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