Add cross-compilation options only when requested#3275
Conversation
Requesting them is done by setting BUILD=<target_arch> Otherwise autotools (used by external dependencies like libsodium) is not happy with setting cross-compilation variables and may possibly lead to unexpected results.
|
Sorry about this, I held it for too long. It was fresh long time ago, when I first started poking into c-lightning. Happy to see it unresolved yet, I decided to send this PR :) |
|
Thanks @jsarenik for the PR. Seems quite all right One thing that seems a bit strange is the naming of the variables. I think |
Sure. Thank you for feed-back. I agree with See Autoconf documentation on this topic which nicely explains how it is meant to be. Generally, I would change even more to not use the
So now I will change the patch from Just for reference: Another solid source from GNU Automake docs |
|
Just a note: |
|
Great, thanks @jsarenik, I hadn't considered that |
Maybe it is not really. It is referenced only once in the |
|
To refresh memories, I went through #1533 |
|
ACK 635a9d7 |
Requesting them is done by setting BUILD=<target_arch>
Otherwise autotools (used by external dependencies like
libsodium) is not happy with setting cross-compilation
variables and may possibly lead to unexpected results.
Changelog-None