guix-commits
[Top][All Lists]
Advanced

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

01/05: gnu: r-mzr: Fix linking.


From: guix-commits
Subject: 01/05: gnu: r-mzr: Fix linking.
Date: Sat, 21 Nov 2020 04:22:47 -0500 (EST)

rekado pushed a commit to branch wip-r
in repository guix.

commit d69e8d069788266eec6ab8c8e38b66df4a735e22
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 3fc64b9..2fd7f06 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -9565,9 +9565,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]