--- /dev/null
+https://bugs.gentoo.org/706992
+--- a/libmpcdec/requant.h
++++ b/libmpcdec/requant.h
+@@ -47,9 +47,9 @@
+
+
+ /* C O N S T A N T S */
+-const mpc_uint8_t Res_bit [18]; ///< Bits per sample for chosen quantizer
+-const MPC_SAMPLE_FORMAT __Cc [1 + 18]; ///< Requantization coefficients
+-const mpc_int16_t __Dc [1 + 18]; ///< Requantization offset
++extern const mpc_uint8_t Res_bit [18]; ///< Bits per sample for chosen quantizer
++extern const MPC_SAMPLE_FORMAT __Cc [1 + 18]; ///< Requantization coefficients
++extern const mpc_int16_t __Dc [1 + 18]; ///< Requantization offset
+
+ #define Cc (__Cc + 1)
+ #define Dc (__Dc + 1)
Source0: http://files.musepack.net/source/musepack_src_r%{rev}.tar.gz
# Source0-md5: 754d67be67f713e54baf70fcfdb2817e
Patch0: %{name}-libs.patch
+Patch1: %{name}-fno-common.patch
URL: http://www.musepack.net/
BuildRequires: cmake >= 2.4
BuildRequires: libcuefile-devel
%prep
%setup -q -n musepack_src_r%{rev}
%patch0 -p0
+%patch1 -p1
%{__rm} -r include/mpc/.svn