summaryrefslogtreecommitdiff
path: root/debian/patches/16_hide_std_symbols_on_qtwebkit.diff
blob: f8c079d0f2a750ce08bcf93e3a1bfdbf5e5809b1 (plain)
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
Description: Don't make the std:: symbols in webkit public.
Solution based on the work of Mike Hommey in the gtk webkit package.
Author: Sune Vuorela <debian@pusling.com>

---
 src/3rdparty/webkit/Source/WebKit.pri     |    2 ++
 src/3rdparty/webkit/Source/symbols.filter |    5 +++++
 2 files changed, 7 insertions(+)

--- a/src/3rdparty/webkit/Source/WebKit.pri
+++ b/src/3rdparty/webkit/Source/WebKit.pri
@@ -100,6 +100,8 @@ win32-g++* {
 CONFIG -= warn_on
 *-g++*:QMAKE_CXXFLAGS += -Wall -Wextra -Wreturn-type -fno-strict-aliasing -Wcast-align -Wchar-subscripts -Wformat-security -Wreturn-type -Wno-unused-parameter -Wno-sign-compare -Wno-switch -Wno-switch-enum -Wundef -Wmissing-noreturn -Winit-self
 
+*-g++*:QMAKE_LFLAGS += -Wl,--version-script,$$PWD/symbols.filter
+
 # Treat warnings as errors on x86/Linux/GCC
 linux-g++* {
     !CONFIG(standalone_package):if(isEqual(QT_ARCH,x86_64)|isEqual(QT_ARCH,i386)): QMAKE_CXXFLAGS += -Werror
--- /dev/null
+++ b/src/3rdparty/webkit/Source/symbols.filter
@@ -0,0 +1,5 @@
+{
+local:
+_ZSt*;
+_ZNSt*;
+};