mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 06:18:07 -05:00
gnu: openmpi: Remove "static" output.
--enable-static removes dynamically-loaded MCA components. * gnu/packages/mpi.scm (openmpi)[outputs]: Remove field. [arguments]: Don't configure with --enable-static; remove 'move-static-libraries' phase. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
685bef2bd1
commit
327404aeaa
1 changed files with 1 additions and 18 deletions
|
@ -122,7 +122,6 @@ (define-public openmpi
|
||||||
(base32
|
(base32
|
||||||
"142s1vny9gllkq336yafxayjgcirj2jv0ddabj879jgya7hyr2d0"))))
|
"142s1vny9gllkq336yafxayjgcirj2jv0ddabj879jgya7hyr2d0"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(outputs '("out" "static"))
|
|
||||||
(inputs
|
(inputs
|
||||||
`(("hwloc" ,hwloc "lib")
|
`(("hwloc" ,hwloc "lib")
|
||||||
("gfortran" ,gfortran)
|
("gfortran" ,gfortran)
|
||||||
|
@ -133,9 +132,7 @@ (define-public openmpi
|
||||||
`(("pkg-config" ,pkg-config)
|
`(("pkg-config" ,pkg-config)
|
||||||
("perl" ,perl)))
|
("perl" ,perl)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:configure-flags `("--enable-static"
|
`(#:configure-flags `("--enable-builtin-atomics"
|
||||||
|
|
||||||
"--enable-builtin-atomics"
|
|
||||||
|
|
||||||
"--enable-mpi-ext=all"
|
"--enable-mpi-ext=all"
|
||||||
"--with-devel-headers"
|
"--with-devel-headers"
|
||||||
|
@ -157,20 +154,6 @@ (define-public openmpi
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(let ((out (assoc-ref outputs "out")))
|
||||||
(for-each delete-file (find-files out "config.log"))
|
(for-each delete-file (find-files out "config.log"))
|
||||||
#t)))
|
|
||||||
(add-after 'install 'move-static-libraries
|
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
|
||||||
;; Move 19 MiB of static libraries to 'static'.
|
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
|
||||||
(static (assoc-ref outputs "static"))
|
|
||||||
(lib (string-append out "/lib"))
|
|
||||||
(slib (string-append static "/lib")))
|
|
||||||
(mkdir-p slib)
|
|
||||||
(for-each (lambda (file)
|
|
||||||
(rename-file
|
|
||||||
file
|
|
||||||
(string-append slib "/" (basename file))))
|
|
||||||
(find-files lib "\\.a$"))
|
|
||||||
#t))))))
|
#t))))))
|
||||||
(home-page "http://www.open-mpi.org")
|
(home-page "http://www.open-mpi.org")
|
||||||
(synopsis "MPI-3 implementation")
|
(synopsis "MPI-3 implementation")
|
||||||
|
|
Loading…
Reference in a new issue