summaryrefslogtreecommitdiff
path: root/audio/osd-lyrics/files/patch-free-visibility
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2012-06-21 16:59:38 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2012-06-21 16:59:38 +0000
commit5969e71de707361cbfcdd39bf1f94e0498762ba5 (patch)
tree00bae54d3568f38510fc4ad2dc08bda3027e6bc4 /audio/osd-lyrics/files/patch-free-visibility
parentUpdate to 0.7.1. (diff)
Unbreak on FreeBSD 9.X and -CURRENT after r215840: #include <stdlib.h> inside
`#pragma GCC visibility push(hidden)' results in free() symbol being .hidden, and linker woes. As a remedy, temporarily revert visibility to default when including this header (probably not the best way to solve the problem though). While here, pacify portlint(1) by removing hard-coded shlib ABI versions in LIB_DEPENDS. Reported by: pointyhat (via pav, erwin)
Notes
Notes: svn path=/head/; revision=299741
Diffstat (limited to '')
-rw-r--r--audio/osd-lyrics/files/patch-free-visibility24
1 files changed, 24 insertions, 0 deletions
diff --git a/audio/osd-lyrics/files/patch-free-visibility b/audio/osd-lyrics/files/patch-free-visibility
new file mode 100644
index 000000000000..032d195fef72
--- /dev/null
+++ b/audio/osd-lyrics/files/patch-free-visibility
@@ -0,0 +1,24 @@
+--- lib/chardetect/src/entry/impl.cpp.orig
++++ lib/chardetect/src/entry/impl.cpp
+@@ -42,7 +42,9 @@
+ #include "nscore.h"
+ #include "nsUniversalDetector.h"
+ #include <string.h>
++#pragma GCC visibility push(default)
+ #include <stdlib.h>
++#pragma GCC visibility pop
+
+ #ifdef _WIN32
+ # include <windows.h>
+--- lib/chardetect/src/prmem.h.orig
++++ lib/chardetect/src/prmem.h
+@@ -37,7 +37,9 @@
+ #ifndef nsDummyPrmem_h__
+ #define nsDummyPrmem_h__
+
++#pragma GCC visibility push(default)
+ #include <stdlib.h>
++#pragma GCC visibility pop
+
+ inline void* PR_Malloc(size_t len)
+ {