guix-commits
[Top][All Lists]
Advanced

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

02/02: gnu: lpsolve: Fix compilation issue.


From: Ludovic Courtès
Subject: 02/02: gnu: lpsolve: Fix compilation issue.
Date: Mon, 25 Jul 2016 22:44:09 +0000 (UTC)

civodul pushed a commit to branch core-updates
in repository guix.

commit 5dbfbef7292a43029b17e89d682d9e24703d5cd2
Author: Ludovic Courtès <address@hidden>
Date:   Tue Jul 26 00:42:05 2016 +0200

    gnu: lpsolve: Fix compilation issue.
    
    Reported by Andreas Enge <address@hidden>
    at <https://lists.gnu.org/archive/html/guix-devel/2016-07/msg01018.html>.
    
    * gnu/packages/maths.scm (lpsolve)[source]: Augment 'snippet'.
---
 gnu/packages/maths.scm |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 0e6fda3..9f10933 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -2189,7 +2189,14 @@ specifications.")
           ;; Pretend to be on a 64 bit platform to obtain a common directory
           ;; name for the build results on all architectures; nothing else
           ;; seems to depend on it.
-          (("^PLATFORM=.*$") "PLATFORM=ux64\n")))))
+          (("^PLATFORM=.*$") "PLATFORM=ux64\n")
+
+          ;; The check for 'isnan' as it is written fails with
+          ;; "non-floating-point argument in call to function
+          ;; ‘__builtin_isnan’", which leads to the 'NOISNAN' cpp macro
+          ;; definition, which in turn leads to bad things.  Fix the feature
+          ;; test.
+          (("isnan\\(0\\)") "isnan(0.)")))))
     (build-system gnu-build-system)
     (arguments
      `(#:tests? #f ; no check target



reply via email to

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