Uh oh!
There was an error while loading. Please reload this page.
gyp: implement LINK for ninja - #14227
Conversation
sam-github
commented
Jul 13, 2017
Based on #14115 (comment), @bnoordhuis , PTAL |
refack
commented
Jul 13, 2017
Feel like pushing it upstream (than I can approve and land it 😈). |
sam-github
commented
Jul 13, 2017
@refack where is upstream? |
refack
commented
Jul 13, 2017
|
refack
commented
Jul 13, 2017
@sam-github could you post the ninja files before the patch and after (probably just the openSSL) |
Without this patch, Line 989 in 73078d6 With this patch, the value of Initially, I modified |
refack
commented
Jul 13, 2017
Isn't that too global? or is that the whole point? |
sam-github
commented
Jul 14, 2017
That is the whole point, and it is exactly what is done for the normal Makefile commands. Right now, before this patch:
I don't understand gyp, maybe its intended that ninja and Makefiles do not share the same gyp variable name to set the link command? If so, then either As someone who doesn't get this entire tottering pile of build tools, I'll take suggestions on what is right! With this PR, we can build FIPS on Linux with ninja, without it or something like it, we can't. |
sam-github
commented
Jul 14, 2017
So, @refack what do you think? LINK sets ld&ldxx? Or leave LINK only for Makefiles, and LD sets ld, and LDXX sets ldxx? Or LD sets ld&ldxx? Which is more gypy/ninjay? |
refack
commented
Jul 14, 2017
IMO:
|
AFAIK |
sam-github
commented
Jul 14, 2017
out of curiosity, what does the ".host" mean? |
sam-github
commented
Jul 14, 2017
@refack PTAL |
refack
commented
Jul 14, 2017
Also perfectly legit. Might be easier to upstream... |
sam-github
commented
Jul 14, 2017
@bnoordhuis LGTY? |
bnoordhuis
left a comment
There was a problem hiding this comment.
what does the ".host" mean?
Host toolchain. Relevant when cross-compiling.
refack
commented
Jul 15, 2017
I'm not sure which side of the |
The ability to set the link rule is used for FIPS, and needs to set both the `ld =` and `ldxx =` variables in the ninja build file to link c++ (node) and c (openssl-cli, etc.) executables. URL: nodejs#14227 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
1e15acf to
a6cec04Compareaddaleax
commented
Jul 18, 2017
For releasers, this was landed with bogus |
The ability to set the link rule is used for FIPS, and needs to set both the `ld =` and `ldxx =` variables in the ninja build file to link c++ (node) and c (openssl-cli, etc.) executables. URL: #14227 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
sam-github
commented
Jul 18, 2017
addaleax
commented
Jul 18, 2017
@sam-github It’s just a typo, the |
sam-github
commented
Jul 18, 2017
Oops, yes, I remember now that there was some kind of paste accident. Sorry. |
The ability to set the link rule is used for FIPS, and needs to set both the `ld =` and `ldxx =` variables in the ninja build file to link c++ (node) and c (openssl-cli, etc.) executables. PR-URL: nodejs#14227 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
refack
commented
Jul 18, 2017
Well I'm re-floating it for #12632 so there it is now fixed |
The ability to set the link rule is used for FIPS, and needs to set both the `ld =` and `ldxx =` variables in the ninja build file to link c++ (node) and c (openssl-cli, etc.) executables. URL: #14227 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
The ability to set the link rule is used for FIPS, and needs to set both the `ld =` and `ldxx =` variables in the ninja build file to link c++ (node) and c (openssl-cli, etc.) executables. URL: #14227 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
The ability to set the link rule is used for FIPS, and needs to set both the `ld =` and `ldxx =` variables in the ninja build file to link c++ (node) and c (openssl-cli, etc.) executables. URL: #14227 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
The ability to set the link rule is used for FIPS, and needs to set both the `ld =` and `ldxx =` variables in the ninja build file to link c++ (node) and c (openssl-cli, etc.) executables. URL: nodejs#14227 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
The ability to set the link rule is used for FIPS, and needs to set both the `ld =` and `ldxx =` variables in the ninja build file to link c++ (node) and c (openssl-cli, etc.) executables. URL: nodejs/node#14227 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
The ability to set the link rule is used for FIPS, and needs to set both the `ld =` and `ldxx =` variables in the ninja build file to link c++ (node) and c (openssl-cli, etc.) executables. URL: nodejs/node#14227 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
The ability to set the link rule is used for FIPS, and needs to set both the `ld =` and `ldxx =` variables in the ninja build file to link c++ (node) and c (openssl-cli, etc.) executables. URL: #14227 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
The ability to set the link rule is used for FIPS, and needs to set both the `ld =` and `ldxx =` variables in the ninja build file to link c++ (node) and c (openssl-cli, etc.) executables. URL: #14227 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
The ability to set the link rule is used for FIPS, and needs to set both the `ld =` and `ldxx =` variables in the ninja build file to link c++ (node) and c (openssl-cli, etc.) executables. URL: nodejs/node#14227 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
The ability to set the link rule is used for FIPS, and needs to set both the `ld =` and `ldxx =` variables in the ninja build file to link c++ (node) and c (openssl-cli, etc.) executables. URL: nodejs/node#14227 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
LINK is used for FIPS, and needs to set both the
ld =andldxx =variables in the ninja build file to link c++ (node) and c (openssl-cli,
etc.) executables.
Without this, ninja can't link node when buliding in FIPS mode, test using
./configure --ninja --openssl-fips=/home/sam/w/core/openssl-fips-2.0.9/canister(obviously, with your own FIPS canister).Affected core subsystem(s)
crypto, deps, gyp