summary refs log tree commit diff
path: root/gnu/packages/music.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2016-12-07 21:20:09 +0200
committerEfraim Flashner <efraim@flashner.co.il>2016-12-07 21:38:43 +0200
commit8a3ce2c7b060487f7ce7116ba30539a6367f3d71 (patch)
tree6cbb40708be61ab4d3d7f1328d9705a8a8560a7d /gnu/packages/music.scm
parentbb4b17064d6d580702e5d06662ceb2f0906a000a (diff)
downloadguix-8a3ce2c7b060487f7ce7116ba30539a6367f3d71.tar.gz
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.
Diffstat (limited to 'gnu/packages/music.scm')
-rw-r--r--gnu/packages/music.scm12
1 files changed, 11 insertions, 1 deletions
diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index b0ed51298f..34beb09f44 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)