Commit bf38959a authored by Diego Biurrun's avatar Diego Biurrun

configure: Move optflags checks to a more sensible place

parent 381a4e31
...@@ -4926,6 +4926,9 @@ check_optflags(){ ...@@ -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 ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment