Ricardo Wurmus <rek...@elephly.net> skribis:

> From eb21775d3fa90fa80e346462ae72a9b77bf3dc2e Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus <rek...@elephly.net>
> Date: Mon, 2 Nov 2015 22:03:25 +0100
> Subject: [PATCH] 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.

[...]

> +         (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")))

With a comment explaining why this is moving things to the right place,
it LGTM!

Thanks,
Ludo’.

Reply via email to