mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-16 08:56:40 -05:00
Use the new CC_CHECK_CFLAGS_APPEND macro instead of a manual for.
This commit is contained in:
parent
e7c3a12a6e
commit
cd375da1db
1 changed files with 1 additions and 5 deletions
|
|
@ -100,11 +100,7 @@ if test "x$M4" = xno ; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl Compiler flags
|
dnl Compiler flags
|
||||||
DESIRED_FLAGS="-Wall -W -Wextra -pipe -Wno-long-long -Winline -Wvla -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing=2 -Wwrite-strings -Wno-unused-parameter -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common -fdiagnostics-show-option"
|
CC_CHECK_CFLAGS_APPEND([-Wall -W -Wextra -pipe -Wno-long-long -Winline -Wvla -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing=2 -Wwrite-strings -Wno-unused-parameter -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common -fdiagnostics-show-option])
|
||||||
|
|
||||||
for flag in $DESIRED_FLAGS ; do
|
|
||||||
CC_CHECK_CFLAGS([$flag], [CFLAGS="$CFLAGS $flag"])
|
|
||||||
done
|
|
||||||
|
|
||||||
dnl Linker flags.
|
dnl Linker flags.
|
||||||
dnl Check whether the linker supports the -version-script option.
|
dnl Check whether the linker supports the -version-script option.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue