Commit 956a34e2 authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

nmad: Arrange so that 'mpicc' & co. find $libexecdir.

Reported by Emmanuel Agullo.

* inria/tadaam.scm (nmad-2019-05-13)[argumenst]: Add
'set-libexec-dir-mpicc' phase.
parent cae395e4
......@@ -229,6 +229,17 @@
(substitute* "building-tools/common_vars.mk.in"
(("/bin/sh") (which "sh")))
#t))
(add-after 'install 'set-libexec-dir-mpicc
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(for-each (lambda (file)
(substitute* file
(("^libexec=.*")
(string-append "libexec=" out
"/libexec\n"))))
(find-files (string-append out "/bin")
"^mpi"))
#t)))
(delete 'check))))
(native-inputs
`(("pkg-config" ,pkg-config)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment