summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorSam Roberts <vieuxtech@gmail.com>2017-07-13 15:05:54 -0700
committerSam Roberts <vieuxtech@gmail.com>2017-07-17 09:36:23 -0700
commita6cec04aaaf4e0d6d51adb7f4485e6f1a69f6d5d (patch)
treef3522ae9c0693e658ccf4df21260ef90cc602835 /configure
parent649d77bbf4e01e3dd3799ff8ca8d190641c9f4da (diff)
downloadandroid-node-v8-a6cec04aaaf4e0d6d51adb7f4485e6f1a69f6d5d.tar.gz
android-node-v8-a6cec04aaaf4e0d6d51adb7f4485e6f1a69f6d5d.tar.bz2
android-node-v8-a6cec04aaaf4e0d6d51adb7f4485e6f1a69f6d5d.zip
gyp: implement LD/LDXX for ninja and FIPS
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: https://github.com/nodejs/node/pull/14227 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure b/configure
index e0369f348d..9a0855b49a 100755
--- a/configure
+++ b/configure
@@ -985,8 +985,11 @@ def configure_openssl(o):
o['variables']['openssl_fips'] = options.openssl_fips
fips_dir = os.path.join(root_dir, 'deps', 'openssl', 'fips')
fips_ld = os.path.abspath(os.path.join(fips_dir, 'fipsld'))
+ # LINK is for Makefiles, LD/LDXX is for ninja
o['make_fips_settings'] = [
['LINK', fips_ld + ' <(openssl_fips)/bin/fipsld'],
+ ['LD', fips_ld + ' <(openssl_fips)/bin/fipsld'],
+ ['LDXX', fips_ld + ' <(openssl_fips)/bin/fipsld'],
]
else:
o['variables']['openssl_fips'] = ''