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.
master
Efraim Flashner 2016-12-07 21:20:09 +02:00
parent bb4b17064d
commit 8a3ce2c7b0
No known key found for this signature in database
GPG Key ID: F4C1D3917EACEE93
1 changed files with 11 additions and 1 deletions

View File

@ -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)