lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master db6123b 06/30: Use -frounding-math option whe


From: Greg Chicares
Subject: [lmi-commits] [lmi] master db6123b 06/30: Use -frounding-math option when building with autotools too
Date: Wed, 24 Mar 2021 15:31:07 -0400 (EDT)

branch: master
commit db6123b9a37c5527d16dfbe3ca54fef206224109
Author: Vadim Zeitlin <vadim@tt-solutions.com>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Use -frounding-math option when building with autotools too
    
    This option is required to obtain correct answers, notably in the
    round_to_test.
    
    Also add -fno-ms-extensions for compatibility with the official
    makefiles.
---
 configure.ac | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/configure.ac b/configure.ac
index f09d782..025469d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -150,6 +150,12 @@ if test "$lmi_cv_cxx_std17" = "no"; then
     )
 fi
 
+dnl These options must be always used for lmi unit tests to pass.
+common_options="-fno-ms-extensions -frounding-math"
+
+CFLAGS="$CFLAGS $common_options"
+CXXFLAGS="$CXXFLAGS $common_options"
+
 AC_PROG_LD
 
 # This is a workaround for the harmless but annoying warning



reply via email to

[Prev in Thread] Current Thread [Next in Thread]