mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-20 07:35:25 +08:00
configure: Move optflags checks to a more sensible place
This commit is contained in:
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
|
||||||
|
Reference in New Issue
Block a user