tools: use LDFLAGS_host for host toolset#37444
Conversation
This makes the behaviour similar to that of CFLAGS_host
|
This should be upstreamed first to https://github.com/nodejs/gyp-next. |
|
Thanks. Done in nodejs/gyp-next#98 |
|
What is the use case in Node.js ? |
|
To cross compile nodejs to a different platform. (My use case is for compiling in |
|
I wonder why we never had the need before. We already cross-compile for ARM on Linux. |
|
I think that's because the compiler is smart enough to ignore the libraries for target platform and look for only the host libraries when building |
|
I launched CI to check whether our cross-compilation setup works with the change. |
|
This was included in #38867. Thanks for the PRs! |
This makes the behaviour similar to that of CFLAGS_host