guix-commits
[Top][All Lists]
Advanced

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

21/43: gnu: libffi: Don't optimize for the build machine CPU.


From: Marius Bakke
Subject: 21/43: gnu: libffi: Don't optimize for the build machine CPU.
Date: Tue, 21 Aug 2018 11:25:56 -0400 (EDT)

mbakke pushed a commit to branch core-updates
in repository guix.

commit 1935b8d56a4c739f468af973ac9057463c18d1bc
Author: Marius Bakke <address@hidden>
Date:   Mon Aug 20 16:36:19 2018 +0200

    gnu: libffi: Don't optimize for the build machine CPU.
    
    * gnu/packages/libffi.scm (libffi)[arguments]: Add #:configure-flags.
---
 gnu/packages/libffi.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/libffi.scm b/gnu/packages/libffi.scm
index 0d54c30..7d3abaf 100644
--- a/gnu/packages/libffi.scm
+++ b/gnu/packages/libffi.scm
@@ -50,7 +50,10 @@
               (patches (search-patches "libffi-3.2.1-complex-alpha.patch"))))
     (build-system gnu-build-system)
     (arguments
-     `(#:phases
+     `(;; Prevent the build system from passing -march and -mtune to the
+       ;; compiler.  See "ax_cc_maxopt.m4" and "ax_gcc_archflag.m4".
+       #:configure-flags '("--enable-portable-binary" "--without-gcc-arch")
+       #:phases
        (modify-phases %standard-phases
          (add-after 'install 'post-install
            (lambda* (#:key outputs #:allow-other-keys)



reply via email to

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