guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: zynaddsubfx: Remove SSE flags from generic target.


From: Ricardo Wurmus
Subject: 01/01: gnu: zynaddsubfx: Remove SSE flags from generic target.
Date: Fri, 06 Nov 2015 07:44:46 +0000

rekado pushed a commit to branch master
in repository guix.

commit 00dfc97c36954307b4eb6ebfdbe7d3c238f5a874
Author: Ricardo Wurmus <address@hidden>
Date:   Mon Nov 2 22:03:25 2015 +0100

    gnu: zynaddsubfx: Remove SSE flags from generic target.
    
    * gnu/packages/music.scm (zynaddsubfx)[arguments]: Add phase to move SSE
      compiler flags from generic to specific targets.
---
 gnu/packages/music.scm |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index 5dcb544..baedf93 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -784,6 +784,19 @@ browser.")
                (base32
                 "01c4v5lbzard6y00cjq3b6a50cafqwfwibzng9gdsajczhnbkqz2"))))
     (build-system cmake-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         ;; Move SSE compiler optimization flags from generic target to
+         ;; athlon64 and core2 targets, because otherwise the build would fail
+         ;; on non-Intel machines.
+         (add-after 'unpack 'remove-sse-flags-from-generic-target
+          (lambda _
+            (substitute* "src/CMakeLists.txt"
+              (("-msse -msse2 -mfpmath=sse") "")
+              (("-march=(athlon64|core2)" flag)
+               (string-append flag " -msse -msse2 -mfpmath=sse")))
+            #t)))))
     (inputs
      `(("liblo" ,liblo)
        ("ntk" ,ntk)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]