build: Update build flags.
This commit is contained in:
parent
77b1e60df0
commit
5c53ef736f
1 changed files with 2 additions and 2 deletions
|
|
@ -28,7 +28,7 @@ AC_SUBST(PA_MAJOR, pa_major)
|
||||||
AC_SUBST(PA_MAJORMINOR, pa_major.pa_minor)
|
AC_SUBST(PA_MAJORMINOR, pa_major.pa_minor)
|
||||||
AC_SUBST(PA_MODULE_VERSION, pa_module_version)
|
AC_SUBST(PA_MODULE_VERSION, pa_module_version)
|
||||||
|
|
||||||
DESIRED_FLAGS="-Wall -W -Wextra -pedantic -pipe -Wno-long-long -Winline -Wvla -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wpacked -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Wno-unused-parameter -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common -fdiagnostics-show-option" # PulseAudio 0.9.15 usess same + -Wcast-align -Wdeclaration-after-statement
|
DESIRED_FLAGS="-std=gnu11 -Wall -W -Wextra -pipe -Wno-long-long -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 -Wwrite-strings -Wno-unused-parameter -fno-common -fdiagnostics-show-option -fdiagnostics-color=auto"
|
||||||
|
|
||||||
for flag in $DESIRED_FLAGS ; do
|
for flag in $DESIRED_FLAGS ; do
|
||||||
CC_CHECK_CFLAGS([$flag], [CFLAGS="$CFLAGS $flag"])
|
CC_CHECK_CFLAGS([$flag], [CFLAGS="$CFLAGS $flag"])
|
||||||
|
|
@ -170,7 +170,7 @@ AS_IF([test "$pulseaudio_cv__Bool" = "yes"], [
|
||||||
#LT_INIT([dlopen win32-dll disable-static])
|
#LT_INIT([dlopen win32-dll disable-static])
|
||||||
AC_PROG_LIBTOOL
|
AC_PROG_LIBTOOL
|
||||||
|
|
||||||
PKG_CHECK_MODULES([PULSEAUDIO], [libpulse >= 5.0 pulsecore >= 5.0])
|
PKG_CHECK_MODULES([PULSEAUDIO], [libpulse >= 14.2 pulsecore >= 14.2])
|
||||||
AC_SUBST(PULSEAUDIO_CFLAGS)
|
AC_SUBST(PULSEAUDIO_CFLAGS)
|
||||||
AC_SUBST(PULSEAUDIO_LIBS)
|
AC_SUBST(PULSEAUDIO_LIBS)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue