[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: ams-lv2: Remove CPU optimization flags on non-Intel hardware
From: |
Efraim Flashner |
Subject: |
01/01: gnu: ams-lv2: Remove CPU optimization flags on non-Intel hardware. |
Date: |
Wed, 7 Dec 2016 20:03:42 +0000 (UTC) |
efraim pushed a commit to branch master
in repository guix.
commit 8a3ce2c7b060487f7ce7116ba30539a6367f3d71
Author: Efraim Flashner <address@hidden>
Date: Wed Dec 7 21:20:09 2016 +0200
gnu: ams-lv2: Remove CPU optimization flags on non-Intel hardware.
* gnu/packages/music.scm (ams-lv2)[arguments]: Add phase to remove
Intel specific CPU optimization flags when compiling on non-Intel
hardware.
---
gnu/packages/music.scm | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index b0ed512..34beb09 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -1711,7 +1711,17 @@ follows a traditional multi-track tape recorder control
paradigm.")
(base32
"1392spswkhfd38fggf584wb3m8aqpg7csfrs9zxnzyvhgmp0fgqk"))))
(build-system waf-build-system)
- (arguments `(#:tests? #f)) ; no tests
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'remove-sse-flags
+ (lambda* (#:key system #:allow-other-keys)
+ (when (not (or (string-prefix? "x86_64" system)
+ (string-prefix? "i686" system)))
+ (substitute* "wscript"
+ (("'-msse', '-mfpmath=sse', ") ""))
+ #t))))
+ #:tests? #f)) ; no tests
(inputs
`(("lv2" ,lv2)
("lvtk" ,lvtk)