From 735531fbc6ac98181a1f4a91bf13df7eeb089a8d Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 8 Jun 2025 10:38:53 +0200 Subject: [PATCH] Add flac patch to workaround compiler bug causing build error Signed-off-by: falkTX --- sources/libs/flac-static/debian/changelog | 2 +- .../patches/9003-workaround-compiler-bug.patch | 13 +++++++++++++ sources/libs/flac-static/debian/patches/series | 1 + 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 sources/libs/flac-static/debian/patches/9003-workaround-compiler-bug.patch diff --git a/sources/libs/flac-static/debian/changelog b/sources/libs/flac-static/debian/changelog index e40f4d0..4fdc854 100644 --- a/sources/libs/flac-static/debian/changelog +++ b/sources/libs/flac-static/debian/changelog @@ -1,4 +1,4 @@ -flac-static (6:1.5.0-1kxstudio1) focal; urgency=medium +flac-static (6:1.5.0-1kxstudio2) focal; urgency=medium * Update diff --git a/sources/libs/flac-static/debian/patches/9003-workaround-compiler-bug.patch b/sources/libs/flac-static/debian/patches/9003-workaround-compiler-bug.patch new file mode 100644 index 0000000..6ba2559 --- /dev/null +++ b/sources/libs/flac-static/debian/patches/9003-workaround-compiler-bug.patch @@ -0,0 +1,13 @@ +--- flac-static-1.5.0.orig/src/libFLAC/window.c ++++ flac-static-1.5.0/src/libFLAC/window.c +@@ -178,6 +178,10 @@ void FLAC__window_rectangle(FLAC__real * + window[n] = 1.0f; + } + ++#ifdef __arm__ ++/* workaround compiler bug */ ++__attribute__((optimize(1))) ++#endif + void FLAC__window_triangle(FLAC__real *window, const FLAC__int32 L) + { + FLAC__int32 n; diff --git a/sources/libs/flac-static/debian/patches/series b/sources/libs/flac-static/debian/patches/series index ac33444..7129f4b 100644 --- a/sources/libs/flac-static/debian/patches/series +++ b/sources/libs/flac-static/debian/patches/series @@ -1,3 +1,4 @@ 0001-remove-build-path-from-generated-FLAC.tag-file.patch 9001-fix-libs.patch 9002-hidden-flac-api.patch +9003-workaround-compiler-bug.patch