configure: Move optflags checks to a more sensible place

This commit is contained in:
Diego Biurrun 2016-12-15 12:20:06 +01:00
parent 381a4e31a6
commit bf38959a30
1 changed files with 3 additions and 4 deletions

7
configure vendored
View File

@ -4926,6 +4926,9 @@ check_optflags(){
enabled lto && check_ldflags "$@"
}
check_optflags $optflags
check_optflags -fno-math-errno
check_optflags -fno-signed-zeros
if enabled lto; then
test "$cc_type" != "$ld_type" && die "LTO requires same compiler and linker"
@ -4933,10 +4936,6 @@ if enabled lto; then
check_ldflags -flto $cpuflags
fi
check_optflags $optflags
check_optflags -fno-math-errno
check_optflags -fno-signed-zeros
if enabled icc; then
# Just warnings, no remarks
check_cflags -w1