gnu: julia: Pass MARCH make flag.
* gnu/packages/julia.scm (julia)[arguments]: Pass "MARCH" flag for supported architectures.master
parent
9e54e957f9
commit
de4b3828ca
|
@ -35,7 +35,8 @@
|
||||||
#:use-module (gnu packages pkg-config)
|
#:use-module (gnu packages pkg-config)
|
||||||
#:use-module (gnu packages python)
|
#:use-module (gnu packages python)
|
||||||
#:use-module (gnu packages textutils)
|
#:use-module (gnu packages textutils)
|
||||||
#:use-module (gnu packages version-control))
|
#:use-module (gnu packages version-control)
|
||||||
|
#:use-module (ice-9 match))
|
||||||
|
|
||||||
(define-public julia
|
(define-public julia
|
||||||
(package
|
(package
|
||||||
|
@ -51,7 +52,7 @@
|
||||||
"1hnbc2blzr9bc27m3vsr127fhg0h5imgqlrx00jakf0my0ccw8gr"))))
|
"1hnbc2blzr9bc27m3vsr127fhg0h5imgqlrx00jakf0my0ccw8gr"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:test-target "test"
|
`(#:test-target "test"
|
||||||
#:modules ((ice-9 match)
|
#:modules ((ice-9 match)
|
||||||
(guix build gnu-build-system)
|
(guix build gnu-build-system)
|
||||||
(guix build utils))
|
(guix build utils))
|
||||||
|
@ -105,6 +106,14 @@
|
||||||
#:make-flags
|
#:make-flags
|
||||||
(list
|
(list
|
||||||
(string-append "prefix=" (assoc-ref %outputs "out"))
|
(string-append "prefix=" (assoc-ref %outputs "out"))
|
||||||
|
|
||||||
|
;; Passing the MARCH flag is necessary to build binary substitutes for
|
||||||
|
;; the supported architectures.
|
||||||
|
,(match (or (%current-target-system)
|
||||||
|
(%current-system))
|
||||||
|
("x86_64-linux" "MARCH=x86-64")
|
||||||
|
("i686-linux" "MARCH=pentium4"))
|
||||||
|
|
||||||
"CONFIG_SHELL=bash" ;needed to build bundled libraries
|
"CONFIG_SHELL=bash" ;needed to build bundled libraries
|
||||||
"USE_SYSTEM_LIBUV=0" ;Julia expects a modified libuv
|
"USE_SYSTEM_LIBUV=0" ;Julia expects a modified libuv
|
||||||
"USE_SYSTEM_DSFMT=0" ;not packaged for Guix and upstream has no
|
"USE_SYSTEM_DSFMT=0" ;not packaged for Guix and upstream has no
|
||||||
|
|
Reference in New Issue