mirror of
https://github.com/mpv-player/mpv
synced 2025-01-09 01:36:25 +01:00
reversing my patch to check for -Wall support & use it if available (requested by A'rpi)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8274 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
422acb829c
commit
3160c935c2
@ -7,7 +7,7 @@ include config.mak
|
||||
INCDIR = -I. -I../loader -I./wm -I./skin $(FREETYPE_INC) $(GTKINC) $(EXTRA_INC)
|
||||
|
||||
OPTIMIZE = $(OPTFLAGS) -fomit-frame-pointer \
|
||||
-fexpensive-optimizations -fschedule-insns2
|
||||
-fexpensive-optimizations -fschedule-insns2 -Wall
|
||||
ifeq ($(TARGET_ARCH_X86),yes)
|
||||
OPTIMIZE += -malign-double
|
||||
endif
|
||||
|
17
configure
vendored
17
configure
vendored
@ -2164,19 +2164,6 @@ else
|
||||
fi
|
||||
echores "$_sys_sysinfo"
|
||||
|
||||
echocheck "-Wall option"
|
||||
cat > $TMPC << EOF
|
||||
int main(void) { return 0; }
|
||||
EOF
|
||||
_wall=no
|
||||
cc_check -Wall && _wall=yes
|
||||
if test "$_wall" = yes ; then
|
||||
_ld_wall='-Wall'
|
||||
else
|
||||
_ld_wall=''
|
||||
fi
|
||||
echores "$_wall"
|
||||
|
||||
|
||||
#########
|
||||
# VIDEO #
|
||||
@ -4403,9 +4390,9 @@ if test "$_profile" != "" || test "$_debug" != "" ; then
|
||||
_stripbinaries=no
|
||||
elif test -z "$CFLAGS" ; then
|
||||
if test "$host_arch" != "mips" ; then
|
||||
CFLAGS="-O4 $_march $_mcpu -pipe -ffast-math -fomit-frame-pointer $_ld_wall"
|
||||
CFLAGS="-O4 $_march $_mcpu -pipe -ffast-math -fomit-frame-pointer"
|
||||
else
|
||||
CFLAGS="-O4 $_march $_mcpu -ffast-math -fomit-frame-pointer $_ld_wall"
|
||||
CFLAGS="-O4 $_march $_mcpu -ffast-math -fomit-frame-pointer"
|
||||
fi
|
||||
# always compile with '-g' if .developer:
|
||||
if test -f ".developer" ; then
|
||||
|
@ -6,7 +6,7 @@ SRCS=af.c af_mp.c af_dummy.c af_delay.c af_channels.c af_format.c af_resample.c
|
||||
|
||||
OBJS=$(SRCS:.c=.o)
|
||||
|
||||
CFLAGS = $(OPTFLAGS) -I.
|
||||
CFLAGS = $(OPTFLAGS) -I. -Wall
|
||||
.SUFFIXES: .c .o
|
||||
|
||||
.c.o:
|
||||
|
Loading…
Reference in New Issue
Block a user