Browse Source

configure: Move optflags checks to a more sensible place

tags/n3.4
Diego Biurrun 8 years ago
parent
commit
bf38959a30
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      configure

+ 3
- 4
configure 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


Loading…
Cancel
Save