guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

262/323: gnu: r-mzr: Fix linking.


From: guix-commits
Subject: 262/323: gnu: r-mzr: Fix linking.
Date: Wed, 9 Dec 2020 06:47:43 -0500 (EST)

rekado pushed a commit to branch master
in repository guix.

commit 471ceb5e5e809af3fa398a14cd402480c9c293cd
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Sat Nov 21 07:36:40 2020 +0100

    gnu: r-mzr: Fix linking.
    
    * gnu/packages/bioinformatics.scm (r-mzr)[arguments]: Fix linking with rhdf5
    libraries.
---
 gnu/packages/bioinformatics.scm | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 788a947..14a9775 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -9701,9 +9701,14 @@ proteomics packages.")
            (lambda _
              (substitute* "src/Makevars"
                (("\\./boost/libs.*") "")
-               (("ARCH_OBJS=" line)
+               ;; This is to avoid having a plain directory on the list of
+               ;; libraries to link.
+               (("\\(RHDF5_LIBS\\)" match)
+                (string-append match "/libhdf5.a"))
+               (("PKG_LIBS=") "PKG_LIBS=$(BOOST_LIBS) ")
+               (("\\ARCH_OBJS=" line)
                 (string-append line
-                               "\nARCH_LIBS=-lboost_system -lboost_regex \
+                               "\nBOOST_LIBS=-lboost_system -lboost_regex \
 -lboost_iostreams -lboost_thread -lboost_filesystem -lboost_chrono\n")))
              #t)))))
     (inputs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]