[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#40767] [PATCH] gnu: Add maradns.
From: |
Efraim Flashner |
Subject: |
[bug#40767] [PATCH] gnu: Add maradns. |
Date: |
Wed, 22 Apr 2020 18:09:04 +0300 |
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 <address@hidden> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
signature.asc
Description: PGP signature
- [bug#40767] [PATCH] gnu: Add maradns., Arun Isaac, 2020/04/22
- [bug#40767] [PATCH] gnu: Add maradns., Mathieu Othacehe, 2020/04/22
- [bug#40767] [PATCH] gnu: Add maradns.,
Efraim Flashner <=
- [bug#40767] [PATCH] gnu: Add maradns., Arun Isaac, 2020/04/22
- [bug#40767] [PATCH] gnu: Add maradns., Mathieu Othacehe, 2020/04/23
- [bug#40767] [PATCH] gnu: Add maradns., Arun Isaac, 2020/04/24
- [bug#40767] [PATCH] gnu: Add maradns., Mathieu Othacehe, 2020/04/25
- [bug#40767] [PATCH] gnu: Add maradns., Arun Isaac, 2020/04/25
- [bug#40767] [PATCH] gnu: Add maradns., Mathieu Othacehe, 2020/04/25
- [bug#40767] [PATCH] gnu: Add maradns., Arun Isaac, 2020/04/25
- [bug#40767] [PATCH] gnu: Add maradns., Mathieu Othacehe, 2020/04/26
- [bug#40767] [PATCH] gnu: Add maradns., Arun Isaac, 2020/04/26