summaryrefslogtreecommitdiff
path: root/debian/patches/03_hide_std_symbols.diff
blob: e5c3d313fa080818ceeadbff836a4afe90993e8f (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
Description: do not make the std:: symbols in webkit public.
             based on Mike Hommey work in the webkit package.
Author: Sune Vuorela <sune@debian.org>

---
 Source/WebKit.pri     |    1 +
 Source/symbols.filter |    5 +++++
 2 files changed, 6 insertions(+)

--- a/Source/WebKit.pri
+++ b/Source/WebKit.pri
@@ -103,6 +103,7 @@ 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,--as-needed
+*-g++*:QMAKE_LFLAGS += -Wl,--version-script,$$PWD/symbols.filter
 
 # Treat warnings as errors on x86/Linux/GCC
 linux-g++* {
--- /dev/null
+++ b/Source/symbols.filter
@@ -0,0 +1,5 @@
+{
+local:
+_ZSt*;
+_ZNSt*;
+};