[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#40767] [PATCH] gnu: Add maradns.
From: |
Mathieu Othacehe |
Subject: |
[bug#40767] [PATCH] gnu: Add maradns. |
Date: |
Wed, 22 Apr 2020 15:49:32 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
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
- [bug#40767] [PATCH] gnu: Add maradns., Arun Isaac, 2020/04/22
- [bug#40767] [PATCH] gnu: Add maradns.,
Mathieu Othacehe <=
- [bug#40767] [PATCH] gnu: Add maradns., Efraim Flashner, 2020/04/22
- [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