[FFmpeg-cvslog] r20408 - trunk/configure

Reimar Döffinger Reimar.Doeffinger
Wed Oct 28 23:17:49 CET 2009


On Thu, Oct 29, 2009 at 01:05:12AM +0300, Michael Kostylev wrote:
> 
> On Wed Oct 28 21:19:15 2009
> mru wrote:
> 
> > configure: add C99 flags to HOSTCFLAGS
> > 
> > Modified:
> >    trunk/configure
> > 
> > Modified: trunk/configure
> > ==============================================================================
> > --- trunk/configure	Wed Oct 28 21:02:40 2009	(r20407)
> > +++ trunk/configure	Wed Oct 28 21:19:15 2009	(r20408)
> > @@ -778,6 +778,20 @@ check_foo_config(){
> >      return $err
> >  }
> >  
> > +check_host_cc(){
> > +    log check_host_cc "$@"
> > +    cat > $TMPC
> > +    log_file $TMPC
> > +    check_cmd $host_cc $host_cflags "$@" -c -o $TMPO $TMPC
> > +}
> > +
> > +check_host_cflags(){
> > +    log check_host_cflags "$@"
> > +    check_host_cc "$@" <<EOF && append host_cflags "$@"
> > +int x;
> > +EOF
> > +}
> > +
> >  apply(){
> >      file=$1
> >      shift
> > @@ -1312,7 +1326,7 @@ LIB_INSTALL_EXTRA_CMD='$(RANLIB) "$(LIBD
> >  
> >  CC_O='-o $@'
> >  
> > -host_cflags='-O3 -g -Wall'
> > +host_cflags='-D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -O3 -g -Wall'
> >  host_libs='-lm'
> >  
> >  target_path='.'
> > @@ -1765,6 +1779,8 @@ check_cc -D_LARGEFILE_SOURCE <<EOF && ad
> >  #include <stdlib.h>
> >  EOF
> >  
> > +check_host_cflags -std=c99
> > +
> >  case "$arch" in
> >      alpha)
> >          arch="alpha"
> 
> http://fate.multimedia.cx/index.php?test_result=28752610
> -Wall needs to be checked too, btw.

Which means switching between the gcc and suncc flags could be easily done
if only check_cflags would (also) check the linking step (e.g. by just not
using -c).



More information about the ffmpeg-cvslog mailing list