node/deps/openssl/openssl_common.gypi
Michael Dawson 30ff0ff6c9 deps: MacOS - fix location of OpenSSL config file
- Restore the location were the OpenSSL config file is
  loaded by default on MacOS back to where it was on earlier versions
- Remove warnings about OPENSSLDIR being multiply defined

Signed-off-by: Michael Dawson <mdawson@devrus.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
PR-URL: https://github.com/nodejs-private/node-private/pull/345
CVE-ID: CVE-2022-32222
2022-09-23 12:32:51 -03:00

76 lines
2 KiB
Python

{
'include_dirs': [
'openssl/',
'openssl/include/',
'openssl/crypto/',
'openssl/crypto/include/',
'openssl/crypto/modes/',
'openssl/crypto/ec/curve448',
'openssl/crypto/ec/curve448/arch_32',
'openssl/providers/common/include',
'openssl/providers/implementations/include',
'config/',
],
# build options specific to OS
'conditions': [
[ 'OS=="aix"', {
# AIX is missing /usr/include/endian.h
'defines': [
'__LITTLE_ENDIAN=1234',
'__BIG_ENDIAN=4321',
'__BYTE_ORDER=__BIG_ENDIAN',
'__FLOAT_WORD_ORDER=__BIG_ENDIAN',
'OPENSSLDIR="/etc/ssl"',
'ENGINESDIR="/dev/null"',
],
}, 'OS=="win"', {
'defines': [
## default of Win. See INSTALL in openssl repo.
'OPENSSLDIR="C:\\\Program\ Files\\\Common\ Files\\\SSL"',
'ENGINESDIR="NUL"',
'OPENSSL_SYS_WIN32', 'WIN32_LEAN_AND_MEAN', 'L_ENDIAN',
'_CRT_SECURE_NO_DEPRECATE', 'UNICODE', '_UNICODE',
],
'cflags': [
'-W3', '-wd4090', '-Gs0', '-GF', '-Gy', '-nologo','/O2',
],
'msvs_disabled_warnings': [4090],
'link_settings': {
'libraries': [
'-lws2_32.lib',
'-lgdi32.lib',
'-ladvapi32.lib',
'-lcrypt32.lib',
'-luser32.lib',
],
},
}, 'OS=="mac"', {
'xcode_settings': {
'WARNING_CFLAGS': ['-Wno-missing-field-initializers']
},
'defines': [
'OPENSSLDIR="/System/Library/OpenSSL/"',
'ENGINESDIR="/dev/null"',
],
}, 'OS=="solaris"', {
'defines': [
'OPENSSLDIR="/etc/ssl"',
'ENGINESDIR="/dev/null"',
'__EXTENSIONS__'
],
}, {
# linux and others
'cflags': ['-Wno-missing-field-initializers',],
'defines': [
'OPENSSLDIR="/etc/ssl"',
'ENGINESDIR="/dev/null"',
'TERMIOS',
],
'conditions': [
[ 'llvm_version=="0.0"', {
'cflags': ['-Wno-old-style-declaration',],
}],
],
}],
]
}