unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Liliana Marie Prikler <liliana.prikler@ist.tugraz.at>
To: Vivien Kraus <vivien@planete-kraus.eu>, 56504@debbugs.gnu.org
Subject: [bug#56504] [PATCH] Mingw support for zlib
Date: Tue, 12 Jul 2022 08:07:25 +0200	[thread overview]
Message-ID: <d5b4227a233f0efffde3e1f02923c22f61454671.camel@ist.tugraz.at> (raw)
In-Reply-To: <9418154f0a4f8c2b06b1b5bbce8df570ec4028de.camel@planete-kraus.eu>

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




  reply	other threads:[~2022-07-12  6:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-11 23:53 [bug#56504] [PATCH] Mingw support for zlib Vivien Kraus via Guix-patches via
2022-07-12  6:07 ` Liliana Marie Prikler [this message]
2022-07-12 16:45   ` Vivien Kraus via Guix-patches via
2022-07-13  5:49     ` Liliana Marie Prikler
2022-07-13 15:19       ` Vivien Kraus via Guix-patches via
2022-07-14  6:01         ` Liliana Marie Prikler
2022-07-15 14:28           ` Vivien Kraus via Guix-patches via
2022-07-15 14:30             ` Liliana Marie Prikler
2022-07-19 21:07               ` Ludovic Courtès
2022-07-31 11:21                 ` bug#56504: " Liliana Marie Prikler

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=d5b4227a233f0efffde3e1f02923c22f61454671.camel@ist.tugraz.at \
    --to=liliana.prikler@ist.tugraz.at \
    --cc=56504@debbugs.gnu.org \
    --cc=vivien@planete-kraus.eu \
    /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).