File 03_hide_std_symbols.diff of Package libQtWebKit4
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>
---
WebKit.pri | 1 +
symbols.filter | 5 +++++
2 files changed, 6 insertions(+)
--- a/Source/WebKit.pri
+++ b/Source/WebKit.pri
@@ -71,6 +71,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*;
+};