unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Christoph Buck <dev@icepic.org>
To: 71174@debbugs.gnu.org
Cc: Christoph Buck <dev@icepic.org>
Subject: bug#71174: [PATCH] gnu: libb2: Fix cross-compilation for non x86_64 systems
Date: Fri, 28 Jun 2024 14:33:11 +0200	[thread overview]
Message-ID: <49709079427ebd67560089df240d7aeb1bab9b1c.1719577991.git.dev@icepic.org> (raw)
In-Reply-To: <874jantepp.fsf@icepic.de>

* gnu/packages/crypto.scm (libb2): Disable fat-binary compile time option for
non x86_64 target systems.

Change-Id: Ibdf009960fecae4ffc033a36b3abf28c2f8935aa
---
 gnu/packages/crypto.scm | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm
index 9c62689d18..1d376fb43c 100644
--- a/gnu/packages/crypto.scm
+++ b/gnu/packages/crypto.scm
@@ -809,12 +809,14 @@ (define-public libb2
     (arguments
      `(#:configure-flags
        (list
-        ,@(if (any (cute string-prefix? <> (or (%current-system)
-                                               (%current-target-system)))
-                   '("x86_64" "i686"))
-              ;; fat only checks for Intel optimisations
-              '("--enable-fat")
-              '())
+        ,@(let ((check-x86 (lambda (triplet) (any (cute string-prefix? <> triplet) '("x86_64" "i868")))))
+            (if (%current-target-system)
+                (if (check-x86 (%current-target-system))
+                    '("--enable-fat")
+                    '())
+                (if (check-x86 (%current-system))
+                    '("--enable-fat")
+                    '())))
         "--disable-native")))           ;don't optimise at build time
     (home-page "https://blake2.net/")
     (synopsis "Library implementing the BLAKE2 family of hash functions")

base-commit: 6a7d5cda17fd9d4bd99c58f7a5dbdd2d021354f9
-- 
2.45.1





  reply	other threads:[~2024-06-28 19:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-24 15:24 bug#71174: libb2 fails to build during cross-compilation Christoph Buck
2024-06-28 12:33 ` Christoph Buck [this message]
2024-06-28 12:56 ` bug#71174: [PATCH] gnu: libb2: Fix cross-compilation for non x86_64 systems Christoph Buck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49709079427ebd67560089df240d7aeb1bab9b1c.1719577991.git.dev@icepic.org \
    --to=dev@icepic.org \
    --cc=71174@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).