summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2016-12-15 12:20:06 +0100
committerDiego Biurrun <diego@biurrun.de>2017-01-25 12:01:02 +0100
commitbf38959a30ecba4e4ee95d4f2a80ba7ece4f34be (patch)
tree799fa9742c69cf503da598c5353427be7bcae84e
parent381a4e31a6b801a046e38b0e2b08fb61499157a7 (diff)
configure: Move optflags checks to a more sensible place
-rwxr-xr-xconfigure7
1 files changed, 3 insertions, 4 deletions
diff --git a/configure b/configure
index 53dd809b86..e79c6225fb 100755
--- a/configure
+++ b/configure
@@ -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