[FFmpeg-cvslog] r20408 - trunk/configure

Michael Kostylev michael.kostylev
Wed Oct 28 23:05:12 CET 2009


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.

Michael



More information about the ffmpeg-cvslog mailing list