gnu: atlas: Try to fix build on MIPS.
authorFederico Beffa <beffa@fbengineering.ch>
Sat, 22 Nov 2014 15:42:41 +0000 (16:42 +0100)
committerFederico Beffa <beffa@fbengineering.ch>
Sun, 23 Nov 2014 14:37:29 +0000 (15:37 +0100)
* gnu/packages/maths.scm (atlas): Add MIPS specific configure flags.

gnu/packages/maths.scm

index 1aa3757..cc068b9 100644 (file)
@@ -979,6 +979,12 @@ point numbers")
          ;; Disable parallel build as it gives errors: atlas_pthread.h is
          ;; needed to compile C files before it is generated.
          "-Ss" "pmake" "make -j 1"
+         ;; Probe is failing for MIPS.  We therefore define the system
+         ;; architecture explicitly by setting (-A) MACHINETYPE = 49
+         ;; 'MIPSR1xK' and (-V) ISA = 1 'none'.
+         ,,@(if (string-prefix? "mips" (%current-system))
+              (list "-A" "49" "-V" "1")
+              (list))
          ;; Generate shared libraries.
          "--shared"
          ;; Build a full LAPACK library.