From d027637026f8aedabe5a0ceeb2c74d1d77d0109b Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Wed, 28 Apr 2021 10:17:01 +0200 Subject: 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(-) (limited to 'gnu/packages/parallel.scm') diff --git a/gnu/packages/parallel.scm b/gnu/packages/parallel.scm index dcd28c792b..17e2a7f7fe 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 _ -- cgit v1.2.3