GNU bug report logs - #56504
[PATCH] Mingw support for zlib

Previous Next

Package: guix-patches;

Reported by: Vivien Kraus <vivien <at> planete-kraus.eu>

Date: Mon, 11 Jul 2022 23:54:01 UTC

Severity: normal

Tags: patch

Done: Liliana Marie Prikler <liliana.prikler <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 56504 <at> debbugs.gnu.org (full text, mbox):

From: Liliana Marie Prikler <liliana.prikler <at> ist.tugraz.at>
To: Vivien Kraus <vivien <at> planete-kraus.eu>, 56504 <at> debbugs.gnu.org
Subject: Re: [PATCH] Mingw support for zlib
Date: Tue, 12 Jul 2022 08:07:25 +0200
Am Dienstag, dem 12.07.2022 um 01:53 +0200 schrieb Vivien Kraus:

> +               ,@(if (and (%current-target-system)
> +                          (string-suffix? "-w64-mingw32" (%current-
> target-system)))
I'm pretty sure there's an abbreviation for this like target-mingw?
> +                     `((substitute* "win32/Makefile.gcc"
> +                         (("PREFIX =")
> +                          (string-append "PREFIX = " ,(%current-
> target-system) "-"))
> +                         (("prefix \\?= /usr/local")
> +                          (string-append "prefix ?= " out))
> +                         (("# BINARY_PATH, INCLUDE_PATH and
> LIBRARY_PATH must be set.")
> +                          "\
> +BINARY_PATH = $(prefix)/bin
> +INCLUDE_PATH = $(prefix)/include
> +LIBRARY_PATH = $(prefix)/lib"))
> +                       (rename-file "win32/Makefile.gcc"
> "Makefile"))
I think these can be conditionally added to #:make-flags
> +                     `((invoke "./configure"
> +                               (string-append "--prefix=" out)))))))

> +         ,@(if (and (%current-target-system)
> +                    (string-suffix? "-mingw32" (%current-target-
> system)))
> +               `(add-after 'install 'install-mingw-shared
> +                  (lambda* (#:key make-flags #:allow-other-keys)
> +                    (apply invoke "make"
> +                           (append make-flags
> +                                   '("install" "SHARED_MODE=1")))))
SHARED_MODE might likewise be conditionally added to #:make-flags.

Cheers




This bug report was last modified 2 years and 297 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.