mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
configure: Move optflags checks to a more sensible place
This commit is contained in:
parent
381a4e31a6
commit
bf38959a30
7
configure
vendored
7
configure
vendored
@ -4926,6 +4926,9 @@ check_optflags(){
|
|||||||
enabled lto && check_ldflags "$@"
|
enabled lto && check_ldflags "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check_optflags $optflags
|
||||||
|
check_optflags -fno-math-errno
|
||||||
|
check_optflags -fno-signed-zeros
|
||||||
|
|
||||||
if enabled lto; then
|
if enabled lto; then
|
||||||
test "$cc_type" != "$ld_type" && die "LTO requires same compiler and linker"
|
test "$cc_type" != "$ld_type" && die "LTO requires same compiler and linker"
|
||||||
@ -4933,10 +4936,6 @@ if enabled lto; then
|
|||||||
check_ldflags -flto $cpuflags
|
check_ldflags -flto $cpuflags
|
||||||
fi
|
fi
|
||||||
|
|
||||||
check_optflags $optflags
|
|
||||||
check_optflags -fno-math-errno
|
|
||||||
check_optflags -fno-signed-zeros
|
|
||||||
|
|
||||||
if enabled icc; then
|
if enabled icc; then
|
||||||
# Just warnings, no remarks
|
# Just warnings, no remarks
|
||||||
check_cflags -w1
|
check_cflags -w1
|
||||||
|
Loading…
Reference in New Issue
Block a user