webkit_qt_hide_symbols.diff 967 B

1234567891011121314151617181920212223242526272829
  1. From: Modestas Vainius <modax@debian.org>
  2. SUbject: Make hide_symbols to cover all QtWebKit portions
  3. Origin: vendor
  4. Author: Timo Jyrinki <timo@debian.org>
  5. Last-Update: 2013-01-28 (use a similar patch on Qt 5)
  6. Forwarded: no
  7. Almost everything in Source/WebCore/generated was not build with
  8. -fvisibility=hidden resulting into redundantly polluted and huge dynamic symbol
  9. list in libQtWebKit.so.
  10. Therefore, move +hide_symbols configuration parameter upwards in order for it
  11. to cover everything including the offending Source/WebCore/CodeGenerators.pri
  12. --- a/Source/QtWebKit.pro 2012-12-18 19:04:43.000000000 +0000
  13. +++ b/Source/QtWebKit.pro 2013-01-28 08:25:56.342911517 +0000
  14. @@ -7,6 +7,11 @@
  15. TEMPLATE = subdirs
  16. CONFIG += ordered
  17. +CONFIG(release):!CONFIG(standalone_package) {
  18. + contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols
  19. + unix:contains(QT_CONFIG, reduce_relocations):CONFIG += bsymbolic_functions
  20. +}
  21. +
  22. api.file = api.pri
  23. SUBDIRS += api