-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlibgd-symbol-visibility.patch
More file actions
106 lines (84 loc) · 3.23 KB
/
libgd-symbol-visibility.patch
File metadata and controls
106 lines (84 loc) · 3.23 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# --- T2-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# T2 SDE: package/.../php/libgd-symbol-visibility.patch
# Copyright (C) 2010 - 2013 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- T2-COPYRIGHT-NOTE-END ---
If external PHP extension that require libgd symbols (gdchart et al.) should
have an chance to work we need to export it's symbols:
gdchart.so: undefined symbol: php_gd_gdFontMediumBold in Unknown on line 0
- Rene Rebe <rene@exactcode.de>
--- php-5.3.2/ext/gd/libgd/gdfontmb.h.vanilla 2010-05-22 18:06:40.000000000 +0200
+++ php-5.3.2/ext/gd/libgd/gdfontmb.h 2010-05-22 18:06:48.000000000 +0200
@@ -18,8 +18,10 @@
#include "gd.h"
+#pragma GCC visibility push(default)
extern gdFontPtr gdFontMediumBold;
extern gdFontPtr gdFontGetMediumBold(void);
+#pragma GCC visibility pop
#ifdef __cplusplus
}
--- php-5.3.2/ext/gd/libgd/gd.h.vanilla 2010-05-22 17:47:50.000000000 +0200
+++ php-5.3.2/ext/gd/libgd/gd.h 2010-05-22 17:49:27.000000000 +0200
@@ -11,6 +11,8 @@
#include "php_compat.h"
+#pragma GCC visibility push(default)
+
#define GD_MAJOR_VERSION 2
#define GD_MINOR_VERSION 0
#define GD_RELEASE_VERSION 35
@@ -697,4 +699,6 @@
/* 2.0.12: this now checks the clipping rectangle */
#define gdImageBoundsSafe(im, x, y) (!((((y) < (im)->cy1) || ((y) > (im)->cy2)) || (((x) < (im)->cx1) || ((x) > (im)->cx2))))
+#pragma GCC visibility pop
+
#endif /* GD_H */
--- php-5.3.2/ext/gd/libgd/gdfontg.h.vanilla 2010-05-22 18:05:30.000000000 +0200
+++ php-5.3.2/ext/gd/libgd/gdfontg.h 2010-05-22 18:06:02.000000000 +0200
@@ -19,8 +19,10 @@
#include "gd.h"
+#pragma GCC visibility push(default)
extern gdFontPtr gdFontGiant;
extern gdFontPtr gdFontGetGiant(void);
+#pragma GCC visibility pop
#ifdef __cplusplus
}
--- php-5.3.2/ext/gd/libgd/gdfonts.h.vanilla 2010-05-22 18:06:56.000000000 +0200
+++ php-5.3.2/ext/gd/libgd/gdfonts.h 2010-05-22 18:07:03.000000000 +0200
@@ -18,8 +18,10 @@
#include "gd.h"
+#pragma GCC visibility push(default)
extern gdFontPtr gdFontSmall;
extern gdFontPtr gdFontGetSmall(void);
+#pragma GCC visibility pop
#ifdef __cplusplus
}
--- php-5.3.2/ext/gd/libgd/gdfontt.h.vanilla 2010-05-22 18:07:09.000000000 +0200
+++ php-5.3.2/ext/gd/libgd/gdfontt.h 2010-05-22 18:07:17.000000000 +0200
@@ -19,8 +19,10 @@
#include "gd.h"
+#pragma GCC visibility push(default)
extern gdFontPtr gdFontTiny;
extern gdFontPtr gdFontGetTiny(void);
+#pragma GCC visibility pop
#ifdef __cplusplus
}
--- php-5.3.2/ext/gd/libgd/gdfontl.h.vanilla 2010-05-22 18:06:17.000000000 +0200
+++ php-5.3.2/ext/gd/libgd/gdfontl.h 2010-05-22 18:06:33.000000000 +0200
@@ -20,8 +20,10 @@
#include "gd.h"
+#pragma GCC visibility push(default)
extern gdFontPtr gdFontLarge;
extern gdFontPtr gdFontGetLarge(void);
+#pragma GCC visibility pop
#ifdef __cplusplus
}