| Index: third_party/freetype2/patches/freetype2_symbols_visibility.patch
|
| diff --git a/third_party/freetype2/patches/freetype2_symbols_visibility.patch b/third_party/freetype2/patches/freetype2_symbols_visibility.patch
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e8c3232aee13a6307795647bcea84306da7f97bb
|
| --- /dev/null
|
| +++ b/third_party/freetype2/patches/freetype2_symbols_visibility.patch
|
| @@ -0,0 +1,28 @@
|
| +diff --git a/third_party/freetype2/include/freetype-custom-config/ftconfig.h b/third_party/freetype2/include/freetype-custom-config/ftconfig.h
|
| +index 0e1945b..80e7940 100644
|
| +--- a/third_party/freetype2/include/freetype-custom-config/ftconfig.h
|
| ++++ b/third_party/freetype2/include/freetype-custom-config/ftconfig.h
|
| +@@ -424,9 +424,9 @@ FT_BEGIN_HEADER
|
| + #ifndef FT_EXPORT
|
| +
|
| + #ifdef __cplusplus
|
| +-#define FT_EXPORT( x ) extern "C" x
|
| ++#define FT_EXPORT( x ) __attribute__ ((visibility ("default"))) extern "C" x
|
| + #else
|
| +-#define FT_EXPORT( x ) extern x
|
| ++#define FT_EXPORT( x ) __attribute__ ((visibility ("default"))) extern x
|
| + #endif
|
| +
|
| + #endif /* !FT_EXPORT */
|
| +@@ -435,9 +435,9 @@ FT_BEGIN_HEADER
|
| + #ifndef FT_EXPORT_DEF
|
| +
|
| + #ifdef __cplusplus
|
| +-#define FT_EXPORT_DEF( x ) extern "C" x
|
| ++#define FT_EXPORT_DEF( x ) __attribute__((visibility("default"))) extern "C" x
|
| + #else
|
| +-#define FT_EXPORT_DEF( x ) extern x
|
| ++#define FT_EXPORT_DEF( x ) __attribute__((visibility("default"))) extern x
|
| + #endif
|
| +
|
| + #endif /* !FT_EXPORT_DEF */
|
|
|