diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-03-24 19:00:40 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-03-24 19:00:40 +0000 |
commit | a7689c2abcff4374b84d95fb2df980ec9a566965 (patch) | |
tree | c3a326274492772c07c074a813f1047d5d7f3d62 /media-libs/libsoundtouch/files | |
parent | b1193c219a8c8da6e1e76cb5d394da129abbca41 (diff) |
gentoo auto-resync : 24:03:2024 - 19:00:40
Diffstat (limited to 'media-libs/libsoundtouch/files')
-rw-r--r-- | media-libs/libsoundtouch/files/libsoundtouch-2.3.2-configure-bashism.patch | 33 | ||||
-rw-r--r-- | media-libs/libsoundtouch/files/libsoundtouch-2.3.2-flags.patch | 18 |
2 files changed, 51 insertions, 0 deletions
diff --git a/media-libs/libsoundtouch/files/libsoundtouch-2.3.2-configure-bashism.patch b/media-libs/libsoundtouch/files/libsoundtouch-2.3.2-configure-bashism.patch new file mode 100644 index 000000000000..b49ebcd38aae --- /dev/null +++ b/media-libs/libsoundtouch/files/libsoundtouch-2.3.2-configure-bashism.patch @@ -0,0 +1,33 @@ +https://codeberg.org/soundtouch/soundtouch/pulls/34 + +From 429a4669cfee54ec69f8be61cc4b5ac2d87d1254 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Sun, 24 Mar 2024 07:19:34 +0000 +Subject: [PATCH 2/2] configure.ac: fix bashism in CXXFLAGS assignment + +configure scripts need to be runnable with a POSIX-compliant /bin/sh. + +On many (but not all!) systems, /bin/sh is provided by Bash, so errors +like this aren't spotted. Notably Debian defaults to /bin/sh provided +by dash which doesn't tolerate such bashisms as '=='. + +This retains compatibility with bash. + +Fixes configure warnings/errors like: +``` +checking whether make supports nested variables... (cached) yes +configure: 3698: CXXFLAGS+= -Ofast: not found +``` + +Signed-off-by: Sam James <sam@gentoo.org> +--- a/configure.ac ++++ b/configure.ac +@@ -33,7 +33,7 @@ AC_LANG(C++) + + # Compiler flags. Apply -Ofast (implies -O3 -ffast-math) to allow gcc autovectorization + # generate effective SIMD code. +-CXXFLAGS+=" -Ofast" ++CXXFLAGS="${CXXFLAGS} -Ofast" + + # Set AR_FLAGS to avoid build warning "ar: `u' modifier ignored since `D' is the default (see `U')" + AR_FLAGS='cr' diff --git a/media-libs/libsoundtouch/files/libsoundtouch-2.3.2-flags.patch b/media-libs/libsoundtouch/files/libsoundtouch-2.3.2-flags.patch new file mode 100644 index 000000000000..badd42e43b26 --- /dev/null +++ b/media-libs/libsoundtouch/files/libsoundtouch-2.3.2-flags.patch @@ -0,0 +1,18 @@ +https://codeberg.org/soundtouch/soundtouch/pulls/35 +--- a/source/SoundTouchDLL/Makefile.am ++++ b/source/SoundTouchDLL/Makefile.am +@@ -34,7 +34,7 @@ libSoundTouchDll_la_SOURCES=../SoundTouch/AAFilter.cpp ../SoundTouch/FIRFilter.c + # Compiler flags
+
+ # Modify the default 0.0.0 to LIB_SONAME.0.0
+-LDFLAGS=-version-info @LIB_SONAME@
++AM_LDFLAGS=$(LDFLAGS) -version-info @LIB_SONAME@
+
+ if X86
+ CXXFLAGS1=-mstackrealign -msse
+@@ -44,4 +44,4 @@ if X86_64 + CXXFLAGS2=-fPIC
+ endif
+
+-CXXFLAGS+=$(AM_CXXFLAGS) $(CXXFLAGS1) $(CXXFLAGS2) -shared -DDLL_EXPORTS -fvisibility=hidden
++AM_CXXFLAGS=$(CXXFLAGS) $(CXXFLAGS1) $(CXXFLAGS2) -shared -DDLL_EXPORTS -fvisibility=hidden
|