~ruther/guix-local

8a3ce2c7b060487f7ce7116ba30539a6367f3d71 — Efraim Flashner 9 years ago bb4b170
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.
1 files changed, 11 insertions(+), 1 deletions(-)

M gnu/packages/music.scm
M gnu/packages/music.scm => gnu/packages/music.scm +11 -1
@@ 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)