rekado pushed a commit to branch master
in repository guix.

commit d027637026f8aedabe5a0ceeb2c74d1d77d0109b
Author: Ricardo Wurmus <[email protected]>
AuthorDate: Wed Apr 28 10:17:01 2021 +0200

    gnu: slurm: Link plugins with libslurm.
    
    * gnu/packages/parallel.scm (slurm)[arguments]: Add phase
    patch-plugin-linker-flags to link plugins with libslurm; run autoconf phase
    after this new phase.
---
 gnu/packages/parallel.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/parallel.scm b/gnu/packages/parallel.scm
index dcd28c7..17e2a7f 100644
--- a/gnu/packages/parallel.scm
+++ b/gnu/packages/parallel.scm
@@ -198,7 +198,12 @@ execution is also possible.")
             ,@(if (target-64bit?) '() '("--enable-deprecated")))
       #:phases
       (modify-phases %standard-phases
-        (add-after 'unpack 'autoconf
+        (add-after 'unpack 'patch-plugin-linker-flags
+          (lambda _
+            (substitute* (find-files "src/plugins/" "Makefile.in")
+              (("_la_LDFLAGS = ")
+               "_la_LDFLAGS = ../../../api/libslurm.la "))))
+        (add-after 'patch-plugin-linker-flags 'autoconf
           (lambda _ (invoke "autoconf")))         ;configure.ac was patched
         (add-after 'install 'install-libpmi
           (lambda _

Reply via email to