/
vis_hidden.patch
64 lines (54 loc) · 1.7 KB
/
vis_hidden.patch
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
From bug 24345
Index: WebKit/wx/WebFrame.h
===================================================================
--- WebKit/wx/WebFrame.h (revision 41418)
+++ WebKit/wx/WebFrame.h (working copy)
@@ -46,6 +46,9 @@
#ifndef SWIG
+#if !wxCHECK_VERSION(2,9,0) && wxCHECK_GCC_VERSION(4,0)
+#define WXDLLIMPEXP_WEBKIT __attribute__ ((visibility("default")))
+#else
#if WXMAKINGDLL_WEBKIT
#define WXDLLIMPEXP_WEBKIT WXEXPORT
#elif defined(WXUSINGDLL_WEBKIT)
@@ -54,8 +57,7 @@
#define WXDLLIMPEXP_WEBKIT
#endif
-#else
-#define WXDLLIMPEXP_WEBKIT
+#endif
#endif // SWIG
class WXDLLIMPEXP_WEBKIT wxWebViewDOMElementInfo
Index: WebKit/wx/WebView.h
===================================================================
--- WebKit/wx/WebView.h (revision 41418)
+++ WebKit/wx/WebView.h (working copy)
@@ -46,6 +46,9 @@
#ifndef SWIG
+#if !wxCHECK_VERSION(2,9,0) && wxCHECK_GCC_VERSION(4,0)
+#define WXDLLIMPEXP_WEBKIT __attribute__ ((visibility("default")))
+#else
#if WXMAKINGDLL_WEBKIT
#define WXDLLIMPEXP_WEBKIT WXEXPORT
#elif defined(WXUSINGDLL_WEBKIT)
@@ -54,8 +57,7 @@
#define WXDLLIMPEXP_WEBKIT
#endif
-#else
-#define WXDLLIMPEXP_WEBKIT
+#endif
#endif // SWIG
#ifndef SWIG
Index: WebKitTools/wx/build-wxwebkit
===================================================================
--- WebKitTools/wx/build-wxwebkit (revision 41418)
+++ WebKitTools/wx/build-wxwebkit (working copy)
@@ -179,7 +179,7 @@
cd $olddir
else
if [ -f $dir/GNUmakefile ]; then
- make -C $dir -f GNUmakefile $MAKE_ARGS CXXFLAGS="$cxxflags" $@
+ make -C $dir -f GNUmakefile $MAKE_ARGS CXXFLAGS="$cxxflags -fvisibility=hidden -fvisibility-inlines-hidden" $@
fi
fi
if [ $? != 0 ]; then