mirror of
https://github.com/RPCS3/soundtouch.git
synced 2024-09-20 00:11:38 +02:00
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>
This commit is contained in:
parent
17b63eeb3e
commit
ba1cb7727e
@ -33,7 +33,7 @@ AC_LANG(C++)
|
|||||||
|
|
||||||
# Compiler flags. Apply -Ofast (implies -O3 -ffast-math) to allow gcc autovectorization
|
# Compiler flags. Apply -Ofast (implies -O3 -ffast-math) to allow gcc autovectorization
|
||||||
# generate effective SIMD code.
|
# generate effective SIMD code.
|
||||||
CXXFLAGS+=" -Ofast -Wall -Wextra -Wzero-as-null-pointer-constant -Wno-unknown-pragmas"
|
CXXFLAGS="${CXXFLAGS} -Ofast -Wall -Wextra -Wzero-as-null-pointer-constant -Wno-unknown-pragmas"
|
||||||
|
|
||||||
# Set AR_FLAGS to avoid build warning "ar: `u' modifier ignored since `D' is the default (see `U')"
|
# Set AR_FLAGS to avoid build warning "ar: `u' modifier ignored since `D' is the default (see `U')"
|
||||||
AR_FLAGS='cr'
|
AR_FLAGS='cr'
|
||||||
|
Loading…
Reference in New Issue
Block a user