diff options
author | ryoon <ryoon@pkgsrc.org> | 2013-02-03 05:13:25 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2013-02-03 05:13:25 +0000 |
commit | d64d49019620b19dc3c746556f86d34b403908dd (patch) | |
tree | f3002f70af1da02843b8ddcdc3f5cc808cfbba76 /fonts/harfbuzz/patches | |
parent | 4158a62ef4771790fce3445cad31842d498f4437 (diff) | |
download | pkgsrc-d64d49019620b19dc3c746556f86d34b403908dd.tar.gz |
Fix build with gcc 4.2.1 of FreeBSD 9.1.
Patch is taken from
https://build.opensuse.org/package/view_file?file=mozilla-gcc43.patch&package=MozillaFirefox&project=home%3AWernerFink%3Abranches%3Amozilla .
Diffstat (limited to 'fonts/harfbuzz/patches')
-rw-r--r-- | fonts/harfbuzz/patches/patch-src_hb-open-type-private.hh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/fonts/harfbuzz/patches/patch-src_hb-open-type-private.hh b/fonts/harfbuzz/patches/patch-src_hb-open-type-private.hh new file mode 100644 index 00000000000..239c463c635 --- /dev/null +++ b/fonts/harfbuzz/patches/patch-src_hb-open-type-private.hh @@ -0,0 +1,25 @@ +$NetBSD: patch-src_hb-open-type-private.hh,v 1.1 2013/02/03 05:13:26 ryoon Exp $ + +--- src/hb-open-type-private.hh.orig 2013-01-08 22:13:42.000000000 +0000 ++++ src/hb-open-type-private.hh +@@ -941,6 +941,11 @@ struct HeadlessArrayOf + DEFINE_SIZE_ARRAY (sizeof (USHORT), array); + }; + ++#if __GNUC__ && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4)) ++// work around GCC 4.3 bug where the search() function gets improperly ++// optimized away from some instantiations of this template ++#pragma GCC visibility push(default) ++#endif + + /* An array with sorted elements. Supports binary searching. */ + template <typename Type> +@@ -968,5 +973,8 @@ struct SortedArrayOf : ArrayOf<Type> { + + } /* namespace OT */ + ++#if __GNUC__ && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4)) ++#pragma GCC visibility pop ++#endif + + #endif /* HB_OPEN_TYPE_PRIVATE_HH */ |