civodul pushed a commit to branch master
in repository guix.
commit 3570d092ac9efe6b996b70e525b08ac376dd66db
Author: Z572 <[email protected]>
AuthorDate: Sat May 27 20:16:08 2023 +0800
gnu: zita-alsa-pcmi: Do not build with "-march=native".
* gnu/packages/audio.scm (zita-alsa-pcmi): Do not build with
"-march=native".
[arguments]<#:phases>: remove '-march=native' form source/Makefile.
[properties]: New field.
Signed-off-by: Ludovic Courtès <[email protected]>
---
gnu/packages/audio.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index 5adbe677d4..83d6f1c143 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -44,6 +44,7 @@
;;; Copyright © 2023 David Thompson <[email protected]>
;;; Copyright © 2023 Sharlatan Hellseher <[email protected]>
;;; Copyright © 2023 Gabriel Wicki <[email protected]>
+;;; Copyright © 2023 Zheng Junjie <[email protected]>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -4466,7 +4467,8 @@ provide high-quality sample rate conversion.")
(lambda _
(substitute* "source/Makefile"
(("ldconfig") "true")
- (("^LIBDIR =.*") "LIBDIR = lib\n"))
+ (("^LIBDIR =.*") "LIBDIR = lib\n")
+ (("CXXFLAGS \\+= -march=native") ""))
(chdir "source")
#t))
(add-after 'install 'install-symlink
@@ -4479,6 +4481,7 @@ provide high-quality sample rate conversion.")
(delete 'configure))))
(inputs
(list alsa-lib fftw))
+ (properties `((tunable? . #t)))
(home-page "https://kokkinizita.linuxaudio.org")
(synopsis "C++ wrapper around the ALSA API")
(description