Skip to content

Commit

Permalink
Add libvorbis patch
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaski committed Jun 10, 2024
1 parent 1d3e1db commit 6986e4f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1693,6 +1693,16 @@ jobs:
working-directory: build
run: tar -xf ../downloads/libvorbis-${{env.libvorbis_version}}.tar.gz

- name: Patch libvorbis
shell: bash
working-directory: build/libvorbis-${{env.libvorbis_version}}
run: patch -p1 < ../../patches/libvorbis-fixes.patch

- name: libvorbis autogen
shell: bash
working-directory: build/libvorbis-${{env.libvorbis_version}}
run: ./autogen.sh

- name: Configure libvorbis
shell: bash
env:
Expand Down
17 changes: 17 additions & 0 deletions patches/libvorbis-fixes.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
diff --git a/configure.ac b/configure.ac
index 14a267f..963b74b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -202,9 +202,9 @@ else
CFLAGS="-O3 -Wall -Wextra -ffast-math -D__NO_MATH_INLINES -fsigned-char $sparc_cpu"
PROFILE="-pg -g -O3 -D__NO_MATH_INLINES -fsigned-char $sparc_cpu" ;;
*-*-darwin*)
- DEBUG="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O0 -fsigned-char"
- CFLAGS="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O3 -ffast-math -fsigned-char"
- PROFILE="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -pg -O3 -ffast-math -fsigned-char";;
+ DEBUG="-DDARWIN -fno-common -Wall -g -O0 -fsigned-char"
+ CFLAGS="-DDARWIN -fno-common -Wall -g -O3 -ffast-math -fsigned-char"
+ PROFILE="-DDARWIN -fno-common -Wall -g -pg -O3 -ffast-math -fsigned-char";;
*-*-os2*)
# Use -W instead of -Wextra because gcc on OS/2 is an old version.
DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"

0 comments on commit 6986e4f

Please sign in to comment.