summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
authorFedor Indutny <fedor@indutny.com>2015-06-01 23:49:43 +0200
committerFedor Indutny <fedor@indutny.com>2015-06-11 01:49:20 +0200
commit0f68377f69823dd470fdb1ae90287c2ea4f8f404 (patch)
treea36b73db087e2ea8e53af103e989a77984706aaa /node.gyp
parent53a4eb319893d722cd614bacde98856b1f7c37cb (diff)
downloadandroid-node-v8-0f68377f69823dd470fdb1ae90287c2ea4f8f404.tar.gz
android-node-v8-0f68377f69823dd470fdb1ae90287c2ea4f8f404.tar.bz2
android-node-v8-0f68377f69823dd470fdb1ae90287c2ea4f8f404.zip
crypto: support FIPS mode of OpenSSL
Support building and running with FIPS-compliant OpenSSL. The process is following: 1. Download and verify `openssl-fips-x.x.x.tar.gz` from https://www.openssl.org/source/ 2. Extract source to `openssl-fips` folder 3. ``cd openssl-fips && ./config fipscanisterbuild --prefix=`pwd`/out`` (NOTE: On OS X, you may want to run ``./Configure darwin64-x86_64-cc --prefix=`pwd`/out`` if you are going to build x64-mode io.js) 4. `make -j && make install` 5. Get into io.js checkout folder 6. `./configure --openssl-fips=/path/to/openssl-fips/out` 7. Build io.js with `make -j` 8. Verify with `node -p "process.versions.openssl"` (`1.0.2a-fips`) Fix: https://github.com/joyent/node/issues/25463 PR-URL: https://github.com/nodejs/io.js/pull/1890 Reviewed-By: Rod Vagg <rod@vagg.org> Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp>
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp4
1 files changed, 2 insertions, 2 deletions
diff --git a/node.gyp b/node.gyp
index cbc536d730..2b530f15f1 100644
--- a/node.gyp
+++ b/node.gyp
@@ -234,13 +234,13 @@
[ 'node_target_type!="static_library"', {
'xcode_settings': {
'OTHER_LDFLAGS': [
- '-Wl,-force_load,<(PRODUCT_DIR)/libopenssl.a',
+ '-Wl,-force_load,<(PRODUCT_DIR)/<(OPENSSL_PRODUCT)',
],
},
'conditions': [
['OS in "linux freebsd"', {
'ldflags': [
- '-Wl,--whole-archive <(PRODUCT_DIR)/libopenssl.a',
+ '-Wl,--whole-archive <(PRODUCT_DIR)/<(OPENSSL_PRODUCT)',
'-Wl,--no-whole-archive',
],
}],