Add build flags to reduce the size of Webcore library
authorAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Fri, 26 Aug 2011 13:19:43 +0000 (10:19 -0300)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Fri, 26 Aug 2011 13:45:02 +0000 (10:45 -0300)
commit16cbdf38f280feb8fcc073b5c461673dffe0feab
tree640ddf96a51a62b308ea7b2b744c617ab4b7af21
parent85d4df147ac7b239497b05979a51fd6fde7580fd
Add build flags to reduce the size of Webcore library

Patch by Holger Freyther <zecke@selfish.org>
Rubberstamped by Andreas Kling.

(qtwebkit-2.2 only by now)

[Qt] libwebcore.a source is compiled without -fvisibility=hidden -fvisibility-inlines-hidden
https://bugs.webkit.org/show_bug.cgi?id=65470

WTF_USE_EXPORT_MACROS is still not enabled on trunk because there are
pending issues with WebKit2, but it appears to be safe to enable this
on QtWebKit, so this change is being added to the qtwebkit-2.2 branch.

The patch also adds CONFIG += hide_symbols and on Unix, +=
bsymbolic_functions, which should help reduce the library binary size.

Testing this is quite easy, so if there's any problem we'll soon
know. :-)
ChangeLog
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/wtf/Platform.h
Source/WebKit.pri