LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File 03_hide_std_symbols.diff of Package qtwebkit (Project home:jsuarezr:LibrePlan)

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>

--- a/WebKit.pri
+++ b/WebKit.pri
@@ -61,6 +61,7 @@ CONFIG -= warn_on
 *-g++*:QMAKE_CXXFLAGS += -Wall -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,$$BASE_DIR/symbols.filter
 
 # Enable GNU compiler extensions to the ARM compiler for all Qt ports using RVCT
 symbian|*-armcc {
--- /dev/null
+++ b/symbols.filter
@@ -0,0 +1,5 @@
+{
+local:
+_ZSt*;
+_ZNSt*;
+};