me
/
guix
Archived
1
0
Fork 0

gnu: samtools: Fix build on i686-linux.

* gnu/packages/bioinformatics.scm (samtools)[arguments]: When building
for i686-linux adjust the make-flags to specifically use the sse math
libraries.

Change-Id: I322d521cbe87e10db7c23db8e68bb377db966aa7
master
Efraim Flashner 2024-05-19 12:23:04 +03:00
parent dd03be186a
commit 58614c9b4b
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 5 additions and 0 deletions

View File

@ -9468,6 +9468,11 @@ to the user's query of interest.")
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:configure-flags (list "--with-ncurses") `(#:configure-flags (list "--with-ncurses")
;; The samtools test suite (and software) expects SSE-based math, even on
;; i686-linux, and not 387-based math. Adjust the CPPFLAGS accordingly.
,@(if (target-x86-32?)
`(#:make-flags (list "CPPFLAGS = -msse -mfpmath=sse"))
'())
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'patch-tests (add-after 'unpack 'patch-tests