From: Efraim Flashner <efraim@flashner.co.il>
To: Mathieu Othacehe <m.othacehe@gmail.com>
Cc: Arun Isaac <arunisaac@systemreboot.net>, 40767@debbugs.gnu.org
Subject: [bug#40767] [PATCH] gnu: Add maradns.
Date: Wed, 22 Apr 2020 18:09:04 +0300 [thread overview]
Message-ID: <20200422150904.GN10788@E5400> (raw)
In-Reply-To: <87lfmnock3.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1442 bytes --]
On Wed, Apr 22, 2020 at 03:49:32PM +0200, Mathieu Othacehe wrote:
>
> Hello,
>
> > + #:make-flags (list "CC=gcc"
> > + (string-append "PREFIX=" %output)
> > + (string-append "RPM_BUILD_ROOT=" %output))
>
> Hard-coding CC variable this way prevents cross-compilation. If you run:
>
> --8<---------------cut here---------------start------------->8---
> ./pre-inst-env guix build maradns --target=aarch64-linux-gnu --target=aarch64-linux-gnu
> --8<---------------cut here---------------end--------------->8---
>
> you will obtain a native version of the binaries. Something like that
> would work better:
>
> --8<---------------cut here---------------start------------->8---
> (string-append "CC=" (if target
> (string-append (assoc-ref %build-inputs "cross-gcc")
> "/bin/" target "-gcc")
> "gcc"))
> --8<---------------cut here---------------end--------------->8---
>
> As this is a recurrent problem we may need to put this snippet into a
> gnu-build-system function?
>
> Thanks,
>
> Mathieu
would (which "gcc") work when cross compiling?
--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2020-04-22 15:10 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-22 13:29 [bug#40767] [PATCH] gnu: Add maradns Arun Isaac
2020-04-22 13:49 ` Mathieu Othacehe
2020-04-22 15:09 ` Efraim Flashner [this message]
2020-04-22 17:26 ` Mathieu Othacehe
2020-04-22 19:01 ` Arun Isaac
2020-04-23 8:37 ` Mathieu Othacehe
2020-04-24 22:13 ` Arun Isaac
2020-04-25 8:13 ` Mathieu Othacehe
2020-04-25 10:58 ` Arun Isaac
2020-04-25 12:43 ` Mathieu Othacehe
2020-04-25 18:03 ` Arun Isaac
2020-04-26 9:05 ` Mathieu Othacehe
2020-04-26 9:51 ` Arun Isaac
2020-04-24 22:15 ` bug#40767: " Arun Isaac
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=20200422150904.GN10788@E5400 \
--to=efraim@flashner.co.il \
--cc=40767@debbugs.gnu.org \
--cc=arunisaac@systemreboot.net \
--cc=m.othacehe@gmail.com \
/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).