[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Deprecating legacy build phase style when cross-compiling vs. native
From: |
Maxime Devos |
Subject: |
Re: Deprecating legacy build phase style when cross-compiling vs. native |
Date: |
Wed, 30 Mar 2022 19:18:38 +0200 |
User-agent: |
Evolution 3.38.3-1 |
Josselin Poiret schreef op wo 30-03-2022 om 17:17 [+0200]:
> Following a report on IRC [1] that nss-certs wouldn't cross-build, I
> found out that the old syntax of using %output instead of the shinier
> $output was still supported only when native-compiling, and not when
> cross-compiling, at least for build-systems inheriting from gnu.
This is a bit of a distraction from the main point of this e-mail, but
nss-certs is architecture-independent, so you could add '#:target
#false' to 'arguments'. Then the native compilation code is run
instead of the cross-compilation code, and the same derivation as for
native compilation is reused, saving a little build time (and disk
space, in case nars are generated or deduplication is disabled).
Greetings,
Maxime.
signature.asc
Description: This is a digitally signed message part