[SCM] libsoxr/master: Do not export private symbols.
bdrung at users.alioth.debian.org
bdrung at users.alioth.debian.org
Wed Feb 6 15:17:31 UTC 2013
The following commit has been merged in the master branch:
commit dc4442dfe9b74d4992cf9e08e3c0ac3f37122331
Author: Benjamin Drung <bdrung at debian.org>
Date: Wed Feb 6 16:14:48 2013 +0100
Do not export private symbols.
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..845ca06
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+.pc
diff --git a/debian/libsoxr0.symbols b/debian/libsoxr0.symbols
index 0f11225..98a706a 100644
--- a/debian/libsoxr0.symbols
+++ b/debian/libsoxr0.symbols
@@ -1,50 +1,4 @@
libsoxr.so.0 libsoxr0 #MINVER#
- _soxr_bessel_I_0 at Base 0.1.0
- _soxr_cdft at Base 0.1.0
- _soxr_cdft_f at Base 0.1.0
- _soxr_clear_fft_cache at Base 0.1.0
- _soxr_clear_fft_cache_f at Base 0.1.0
- _soxr_ddct at Base 0.1.0
- _soxr_ddct_f at Base 0.1.0
- _soxr_ddst at Base 0.1.0
- _soxr_ddst_f at Base 0.1.0
- _soxr_deinterleave at Base 0.1.0
- _soxr_deinterleave_f at Base 0.1.0
- _soxr_design_lpf at Base 0.1.0
- _soxr_dfct at Base 0.1.0
- _soxr_dfct_f at Base 0.1.0
- _soxr_dfst at Base 0.1.0
- _soxr_dfst_f at Base 0.1.0
- _soxr_fir_to_phase at Base 0.1.0
- _soxr_init_fft_cache at Base 0.1.0
- _soxr_init_fft_cache_f at Base 0.1.0
- _soxr_interleave at Base 0.1.0
- _soxr_interleave_f at Base 0.1.0
- _soxr_kaiser_beta at Base 0.1.0
- _soxr_kaiser_params at Base 0.1.0
- _soxr_make_lpf at Base 0.1.0
- _soxr_ordered_convolve at Base 0.1.0
- _soxr_ordered_convolve_f at Base 0.1.0
- _soxr_ordered_convolve_simd at Base 0.1.0
- _soxr_ordered_partial_convolve at Base 0.1.0
- _soxr_ordered_partial_convolve_f at Base 0.1.0
- _soxr_ordered_partial_convolve_simd at Base 0.1.0
- _soxr_rate32_cb at Base 0.1.0
- _soxr_rate32s_cb at Base 0.1.0
- _soxr_rate64_cb at Base 0.1.0
- _soxr_rdft32_cb at Base 0.1.0
- _soxr_rdft32s_cb at Base 0.1.0
- _soxr_rdft64_cb at Base 0.1.0
- _soxr_rdft at Base 0.1.0
- _soxr_rdft_f at Base 0.1.0
- _soxr_safe_cdft at Base 0.1.0
- _soxr_safe_cdft_f at Base 0.1.0
- _soxr_safe_rdft at Base 0.1.0
- _soxr_safe_rdft_f at Base 0.1.0
- _soxr_simd_aligned_calloc at Base 0.1.0
- _soxr_simd_aligned_free at Base 0.1.0
- _soxr_simd_aligned_malloc at Base 0.1.0
- _soxr_vr32_cb at Base 0.1.0
soxr_clear at Base 0.1.0
soxr_create at Base 0.1.0
soxr_delay at Base 0.1.0
diff --git a/debian/patches/private-symbols.patch b/debian/patches/private-symbols.patch
new file mode 100644
index 0000000..dd857e3
--- /dev/null
+++ b/debian/patches/private-symbols.patch
@@ -0,0 +1,40 @@
+Description: Hide private symbols.
+Author: Rob Sykes <robs at users.sourceforge.net>
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -130,9 +130,10 @@
+ if (CMAKE_BUILD_TYPE STREQUAL "Release")
+ set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -s") # strip
+ endif ()
+- #option (VISIBILITY_HIDDEN "Build with -fvisibility=hidden." ON)
++ cmake_dependent_option (VISIBILITY_HIDDEN "Build with -fvisibility=hidden." ON
++ "BUILD_SHARED_LIBS" OFF)
+ if (VISIBILITY_HIDDEN)
+- add_definitions (-fvisibility=hidden)
++ add_definitions (-fvisibility=hidden -DSOXR_VISIBILITY)
+ endif ()
+ endif ()
+
+--- a/src/soxr-lsr.h
++++ b/src/soxr-lsr.h
+@@ -30,6 +30,8 @@
+ #else
+ #define SOXR __declspec(dllimport)
+ #endif
++#elif defined SOXR_VISIBILITY && defined __GNUC__ && (__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ >= 1)
++ #define SOXR __attribute__ ((visibility("default")))
+ #else
+ #define SOXR
+ #endif
+--- a/src/soxr.h
++++ b/src/soxr.h
+@@ -36,6 +36,8 @@
+ #else
+ #define SOXR __declspec(dllimport)
+ #endif
++#elif defined SOXR_VISIBILITY && defined __GNUC__ && (__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ >= 1)
++ #define SOXR __attribute__ ((visibility("default")))
+ #else
+ #define SOXR
+ #endif
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a7b37e3
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+private-symbols.patch
--
libsoxr packaging
More information about the pkg-multimedia-commits
mailing list