mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
configure: add C99 flags to HOSTCFLAGS
Originally committed as revision 20408 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
3db0208c42
commit
f0125de9d1
18
configure
vendored
18
configure
vendored
@ -778,6 +778,20 @@ check_foo_config(){
|
|||||||
return $err
|
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(){
|
apply(){
|
||||||
file=$1
|
file=$1
|
||||||
shift
|
shift
|
||||||
@ -1312,7 +1326,7 @@ LIB_INSTALL_EXTRA_CMD='$(RANLIB) "$(LIBDIR)/$(LIBNAME)"'
|
|||||||
|
|
||||||
CC_O='-o $@'
|
CC_O='-o $@'
|
||||||
|
|
||||||
host_cflags='-O3 -g -Wall'
|
host_cflags='-D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -O3 -g -Wall'
|
||||||
host_libs='-lm'
|
host_libs='-lm'
|
||||||
|
|
||||||
target_path='.'
|
target_path='.'
|
||||||
@ -1765,6 +1779,8 @@ check_cc -D_LARGEFILE_SOURCE <<EOF && add_cppflags -D_LARGEFILE_SOURCE
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
check_host_cflags -std=c99
|
||||||
|
|
||||||
case "$arch" in
|
case "$arch" in
|
||||||
alpha)
|
alpha)
|
||||||
arch="alpha"
|
arch="alpha"
|
||||||
|
Loading…
Reference in New Issue
Block a user