guix-commits
[Top][All Lists]
Advanced

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

35/66: gnu: bamtools: Set rpath via LDFLAGS.


From: Manolis Fragkiskos Ragkousis
Subject: 35/66: gnu: bamtools: Set rpath via LDFLAGS.
Date: Thu, 21 May 2015 12:52:00 +0000

phant0mas pushed a commit to branch wip-hurd
in repository guix.

commit 9db3c739e90de05d2724b483f49fee9f1237dd4f
Author: Ricardo Wurmus <address@hidden>
Date:   Mon May 4 11:27:39 2015 +0200

    gnu: bamtools: Set rpath via LDFLAGS.
    
    * gnu/packages/bioinformatics.scm (bamtools): Add a pre-configure phase
      setting $LDFLAGS to set the rpath to $out/lib/bamtools.
---
 gnu/packages/bioinformatics.scm |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 8bc5b86..7dc1bc4 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -62,7 +62,17 @@
                (base32
                 "1brry29bw2xr2l9pqn240rkqwayg85b8qq78zk2zs6nlspk4d018"))))
     (build-system cmake-build-system)
-    (arguments `(#:tests? #f)) ;no "check" target
+    (arguments
+     `(#:tests? #f ;no "check" target
+       #:phases
+       (modify-phases %standard-phases
+         (add-before
+          'configure 'set-ldflags
+          (lambda* (#:key outputs #:allow-other-keys)
+            (setenv "LDFLAGS"
+                    (string-append
+                     "-Wl,-rpath="
+                     (assoc-ref outputs "out") "/lib/bamtools")))))))
     (inputs `(("zlib" ,zlib)))
     (home-page "https://github.com/pezmaster31/bamtools";)
     (synopsis "C++ API and command-line toolkit for working with BAM data")



reply via email to

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