diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2021-08-05 13:44:23 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2021-08-05 15:51:06 +0300 |
commit | 7f3ccc5bdbab469351f3ba08903bfe64cece034e (patch) | |
tree | 11152c06ef2c3372b06a21953a0baeb1ef021e65 /gnu/packages | |
parent | e914fc5913085aa7bf768490b093a6313d750bfc (diff) |
gnu: julia: Fix building on aarch64-linux.
* gnu/packages/julia.scm (julia)[arguments]: Add phase on aarch64-linux
to skip linking to nonexistant libquadmath.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/julia.scm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gnu/packages/julia.scm b/gnu/packages/julia.scm index 6045c16b8f..4d739c8434 100644 --- a/gnu/packages/julia.scm +++ b/gnu/packages/julia.scm @@ -341,6 +341,19 @@ libraries. It is also a bit like @code{ldd} and @code{otool -L}.") (("\\$\\$\\(build_depsbindir\\)/libwhich") (string-append (assoc-ref inputs "libwhich") "/bin/libwhich"))) #t)) + ;; For some reason libquadmath is unavailable on this architecture. + ;; https://github.com/JuliaLang/julia/issues/41613 + ,@(if (target-aarch64?) + '((add-after 'unpack 'drop-libquadmath-on-aarch64 + (lambda _ + (substitute* '("contrib/fixup-libgfortran.sh" + "deps/csl.mk" + "base/Makefile") + ((".*libquadmath.*") "")) + (substitute* "Makefile" + (("libquadmath ") "")) + #t))) + '()) (add-before 'check 'set-home ;; Some tests require a home directory to be set. (lambda _ (setenv "HOME" "/tmp") #t)) |