[FFmpeg-devel] [PATCH] add cflags filtering rules for suncc
Måns Rullgård
mans
Sat Oct 31 12:44:54 CET 2009
Michael Kostylev <michael.kostylev at gmail.com> writes:
> The -Os mapping may be ajusted/safely removed, -O2 is set just because
> the -O[3-5] options are currently unusable on x86.
Are you sure you attached the patch you're talking about there? I see
nothing about 3-5.
> --- ./configure.orig
> +++ ./configure
> @@ -1613,6 +1618,17 @@
> cc_version="AV_STRINGIFY(__SUNPRO_C)"
> DEPEND_CMD='$(DEPCC) $(DEPFLAGS) $< | sed -e "1s,^.*: ,$@: ," -e "\$$!s,\$$, \\\\\\," -e "1!s,^.*: , ," > $(@:.o=.d)'
> DEPFLAGS='$(CPPFLAGS) $(CFLAGS) -xM1'
> + filter_cflags=suncc_flags
> + suncc_flags(){
> + for flag; do
> + case $flag in
> + -std=c99) echo -xc99 ;;
> + -fomit-frame-pointer) echo -xregs=frameptr ;;
> + -Os) echo -O2 -xspace ;;
> + -O[1-5]|-g) echo $flag ;;
> + esac
> + done
> + }
> fi
Do you realise that this will drop all other flags?
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list