[SCM] faac/master: Set appropriate symbol visibility attributes.
fabian-guest at users.alioth.debian.org
fabian-guest at users.alioth.debian.org
Mon Feb 6 14:04:39 UTC 2012
The following commit has been merged in the master branch:
commit b85e9f6013524aade9727d44a7c9f3aa804d3a3e
Author: Fabian Greffrath <fabian at greffrath.com>
Date: Mon Feb 6 14:24:09 2012 +0100
Set appropriate symbol visibility attributes.
diff --git a/debian/patches/series b/debian/patches/series
index 48626c1..d9f17d5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
build-fix.patch
+symbol-visibility.patch
diff --git a/debian/patches/symbol-visibility.patch b/debian/patches/symbol-visibility.patch
new file mode 100644
index 0000000..363364c
--- /dev/null
+++ b/debian/patches/symbol-visibility.patch
@@ -0,0 +1,36 @@
+--- faac.orig/include/faac.h
++++ faac/include/faac.h
+@@ -30,6 +30,10 @@ extern "C" {
+ # ifndef FAACAPI
+ # define FAACAPI __stdcall
+ # endif
++#elif defined(__GNUC__) && __GNUC__ >= 4
++# ifndef FAACAPI
++# define FAACAPI __attribute__((visibility("default")))
++# endif
+ #else
+ # ifndef FAACAPI
+ # define FAACAPI
+--- faac.orig/libfaac/Makefile.am
++++ faac/libfaac/Makefile.am
+@@ -7,6 +7,7 @@ endif
+ libfaac_la_SOURCES = $(main_SOURCES) $(drm_SOURCES)
+ libfaac_la_INCLUDES = aacquant.h channels.h filtbank.h hufftab.h psych.h backpred.h coder.h frame.h midside.h tns.h bitstream.h fft.h huffman.h ltp.h util.h
+ libfaac_la_LIBADD = -lm
++libfaac_la_CFLAGS = -fvisibility=hidden
+
+ INCLUDES = -I$(top_srcdir)/include
+
+--- faac.orig/libfaac/frame.h
++++ faac/libfaac/frame.h
+@@ -54,6 +54,10 @@ extern "C" {
+ #ifndef FAACAPI
+ #define FAACAPI __stdcall
+ #endif
++#elif defined(__GNUC__) && __GNUC__ >= 4
++ #ifndef FAACAPI
++ #define FAACAPI __attribute__((visibility("default")))
++ #endif
+ #else
+ #ifndef FAACAPI
+ #define FAACAPI
--
faac packaging
More information about the pkg-multimedia-commits
mailing list