summaryrefslogtreecommitdiffstats
path: root/system/mediaextract/mediaextract.SlackBuild
diff options
context:
space:
mode:
author B. Watson2022-03-19 18:25:17 +0100
committer Willy Sudiarto Raharjo2022-03-20 14:45:16 +0100
commit1f5145a534ffaa3e6a36f104e53382562dcd0cb1 (patch)
tree58c3279cf4f68c6055da4a7beb36e6a8e4c89213 /system/mediaextract/mediaextract.SlackBuild
parent31b4a7eef6c62fe3cd3530851e77eff1f28f0f4b (diff)
downloadslackbuilds-1f5145a534ffaa3e6a36f104e53382562dcd0cb1.tar.gz
system/mediaextract: Fix 32-bit build.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/mediaextract/mediaextract.SlackBuild')
-rw-r--r--system/mediaextract/mediaextract.SlackBuild9
1 files changed, 9 insertions, 0 deletions
diff --git a/system/mediaextract/mediaextract.SlackBuild b/system/mediaextract/mediaextract.SlackBuild
index bb8e9aada8..d61caa732f 100644
--- a/system/mediaextract/mediaextract.SlackBuild
+++ b/system/mediaextract/mediaextract.SlackBuild
@@ -57,6 +57,15 @@ chown -R root:root .
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+# 20220319 bkw: gcc and clang were both hitting the 4GB per-process
+# memory limit, due to ridiculous preprocessor abuse in riff.c. The
+# thing was doing a bunch of nested macro expansions, to determine
+# the maximum size for an array... turns out the size it calculated
+# was 9. The patch just hardcodes it to 9 and gets rid of the nested
+# macro calls. This should be revisited when/if there's a new
+# version of mediaextract.
+patch -p1 < $CWD/compilefix.diff
+
cd source
mkdir -p build-linux32 build-linux64