[SCM] faad2/master: Set appropriate symbol visibility attributes.
fabian-guest at users.alioth.debian.org
fabian-guest at users.alioth.debian.org
Tue Feb 7 15:01:22 UTC 2012
The following commit has been merged in the master branch:
commit 27a962d48065bbf9a0abf6b822b7a8b9f1f8ffb7
Author: Fabian Greffrath <fabian at greffrath.com>
Date: Tue Feb 7 15:50:32 2012 +0100
Set appropriate symbol visibility attributes.
diff --git a/debian/patches/series b/debian/patches/series
index b3cd910..ab5ffad 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ incorrect_pointer_size.patch
bpa-stdin.patch
path_max.patch
fix_ftbfs_with_gcc4.5.patch
+symbol-visibility.patch
diff --git a/debian/patches/symbol-visibility.patch b/debian/patches/symbol-visibility.patch
new file mode 100644
index 0000000..a97c8b6
--- /dev/null
+++ b/debian/patches/symbol-visibility.patch
@@ -0,0 +1,51 @@
+Description: Set appropriate symbol visibility attributes.
+Author: Fabian Greffrath <fabian+debian at greffrath.com>
+
+--- faad2.orig/include/neaacdec.h
++++ faad2/include/neaacdec.h
+@@ -63,6 +63,10 @@ extern "C" {
+ #ifndef NEAACDECAPI
+ #define NEAACDECAPI __cdecl
+ #endif
++#elif defined(__GNUC__) && __GNUC__ >= 4
++ #ifndef NEAACDECAPI
++ #define NEAACDECAPI __attribute__((visibility("default")))
++ #endif
+ #else
+ #ifndef NEAACDECAPI
+ #define NEAACDECAPI
+@@ -198,7 +202,7 @@ typedef struct NeAACDecFrameInfo
+ unsigned char ps;
+ } NeAACDecFrameInfo;
+
+-char* NEAACDECAPI NeAACDecGetErrorMessage(unsigned char errcode);
++NEAACDECAPI char* NeAACDecGetErrorMessage(unsigned char errcode);
+
+ unsigned long NEAACDECAPI NeAACDecGetCapabilities(void);
+
+@@ -231,12 +235,12 @@ void NEAACDECAPI NeAACDecPostSeekReset(N
+
+ void NEAACDECAPI NeAACDecClose(NeAACDecHandle hDecoder);
+
+-void* NEAACDECAPI NeAACDecDecode(NeAACDecHandle hDecoder,
++NEAACDECAPI void* NeAACDecDecode(NeAACDecHandle hDecoder,
+ NeAACDecFrameInfo *hInfo,
+ unsigned char *buffer,
+ unsigned long buffer_size);
+
+-void* NEAACDECAPI NeAACDecDecode2(NeAACDecHandle hDecoder,
++NEAACDECAPI void* NeAACDecDecode2(NeAACDecHandle hDecoder,
+ NeAACDecFrameInfo *hInfo,
+ unsigned char *buffer,
+ unsigned long buffer_size,
+--- faad2.orig/libfaad/Makefile.am
++++ faad2/libfaad/Makefile.am
+@@ -1,6 +1,7 @@
+ lib_LTLIBRARIES = libfaad.la
+
+-AM_CFLAGS = -iquote $(top_srcdir)/include
++AM_CFLAGS = -iquote $(top_srcdir)/include \
++ -fvisibility=hidden
+ include_HEADERS = $(top_srcdir)/include/faad.h \
+ $(top_srcdir)/include/neaacdec.h
+
--
faad2 packaging
More information about the pkg-multimedia-commits
mailing list