efraim pushed a commit to branch master
in repository guix.

commit 62d00095c2d20f4625189c7e5d642f66f65fd9d7
Author: Efraim Flashner <efr...@flashner.co.il>
Date:   Thu Sep 22 19:20:26 2016 +0300

    gnu: prank: Allow building on 32-bit machines.
    
    * gnu/packages/bioinformatics.scm (prank)[arguments]: Add a phase
    removing the '-m64' compiler flag.
---
 gnu/packages/bioinformatics.scm |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index b273d2c..28d1388 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -3529,6 +3529,12 @@ generated using the PacBio Iso-Seq protocol.")
             (lambda _
               (chdir "src")
               #t))
+         (add-after 'unpack 'remove-m64-flag
+           ;; Prank will build with the correct 'bit-ness' without this flag
+           ;; and this allows building on 32-bit machines.
+           (lambda _ (substitute* "src/Makefile"
+                                  (("-m64") ""))
+             #t))
          (delete 'configure)
          (replace 'install
            (lambda* (#:key outputs #:allow-other-keys)

Reply via email to