aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorGiancarlo Dessì <gian@giand.it>2020-12-16 18:43:07 +0100
committerRobby Workman <rworkman@slackbuilds.org>2021-04-17 23:43:45 -0500
commitbd9983ffa81c87ffcad919e203b0ba607bc45514 (patch)
treed6d0f128c39b87c73a01b5cd3ff7280f3c7a1ba2 /audio
parentce22c63c704acba6c7b8bdd1c23e17e617bc456b (diff)
audio/musepack-tools: Patch for gcc >= 10.x.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'audio')
-rw-r--r--audio/musepack-tools/musepack-tools-465-fno-common.patch16
-rw-r--r--audio/musepack-tools/musepack-tools.SlackBuild2
2 files changed, 18 insertions, 0 deletions
diff --git a/audio/musepack-tools/musepack-tools-465-fno-common.patch b/audio/musepack-tools/musepack-tools-465-fno-common.patch
new file mode 100644
index 000000000000..0fb9f5e5eb55
--- /dev/null
+++ b/audio/musepack-tools/musepack-tools-465-fno-common.patch
@@ -0,0 +1,16 @@
+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)
diff --git a/audio/musepack-tools/musepack-tools.SlackBuild b/audio/musepack-tools/musepack-tools.SlackBuild
index def13583105a..c68169380a12 100644
--- a/audio/musepack-tools/musepack-tools.SlackBuild
+++ b/audio/musepack-tools/musepack-tools.SlackBuild
@@ -53,6 +53,8 @@ find -L . \
# sane defaults (hints from Gentoo)
patch -p1 < $CWD/musepack-tools-475.patch
+# fix building with -fno-common
+patch -p1 < $CWD/musepack-tools-465-fno-common.patch
mkdir -p build
cd build