gnu: r-mzr: Fix linking.

* gnu/packages/bioinformatics.scm (r-mzr)[arguments]: Fix linking with rhdf5
libraries.
This commit is contained in:
Ricardo Wurmus 2020-11-21 07:36:40 +01:00
parent badb4678bd
commit 471ceb5e5e
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -9701,9 +9701,14 @@ (define-public r-mzr
(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