unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 12e8c3617dec51e90c29d57cccaeb987049acb19 1115 bytes (raw)
name: gnu/packages/patches/guile-lzlib-hurd64.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
 
Upstream-status: Presented upstream.

From 80dcd31562827f4b6d085affe9d9f22164f7ed34 Mon Sep 17 00:00:00 2001
From: Janneke Nieuwenhuizen <janneke@gnu.org>
Date: Fri, 15 Nov 2024 16:18:29 +0100
Subject: [PATCH] build: Support the 64bit Hurd.

* configure.ac: When cross-compiling declare LZ_decompress_open before
using it in conftest.c.
---
 configure.ac | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 50dc5ac..4c56768 100644
--- a/configure.ac
+++ b/configure.ac
@@ -32,7 +32,10 @@ AC_DEFUN([GUILE_LIBLZ_FILE_NAME], [
     [if test "$cross_compiling" = yes; then
        # When cross-compiling, we cannot rely on 'ldd'.  Instead, look
        # the output of 'ld --verbose', assuming we're using GNU ld.
-       echo 'int main () { return LZ_decompress_open(); }' > conftest.c
+       cat > conftest.c <<EOF
+int LZ_decompress_open ();
+int main () { return LZ_decompress_open(); }
+EOF
        guile_cv_liblz_libdir="\
           `$CC conftest.c -o conftest$EXEEXT -llz -Wl,--verbose 2>/dev/null \
           | grep -E '^/.*/liblz\.(a|so)'`"
-- 
2.46.0


debug log:

solving 12e8c3617d ...
found 12e8c3617d in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

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).