Skip to content

Commit 181b8a5

Browse files
committed
gyp: preserve v8dbg syms on freebsd too
1 parent fd80a31 commit 181b8a5

4 files changed

Lines changed: 13 additions & 5 deletions

File tree

deps/openssl/openssl.gyp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,10 @@
939939
],
940940
}],
941941
['target_arch=="arm"', {
942-
'sources': ['openssl/crypto/armcap.c'],
942+
'sources': [
943+
'openssl/crypto/armcap.c',
944+
'openssl/crypto/armv4cpuid.S',
945+
],
943946
}],
944947
],
945948
'include_dirs': [

deps/openssl/openssl/crypto/cryptlib.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,9 +661,11 @@ const char *CRYPTO_get_lock_name(int type)
661661
return(sk_OPENSSL_STRING_value(app_locks,type-CRYPTO_NUM_LOCKS));
662662
}
663663

664-
#if defined(__i386) || defined(__i386__) || defined(_M_IX86) || \
664+
#if !defined(_ARM_ARCH__) && \
665+
(defined(__i386) || defined(__i386__) || defined(_M_IX86) || \
665666
defined(__INTEL__) || \
666-
defined(__x86_64) || defined(__x86_64__) || defined(_M_AMD64) || defined(_M_X64)
667+
defined(__x86_64) || defined(__x86_64__) || defined(_M_AMD64) || \
668+
defined(_M_X64))
667669

668670
unsigned int OPENSSL_ia32cap_P[2];
669671
unsigned long *OPENSSL_ia32cap_loc(void)

deps/openssl/openssl/crypto/mem_clr.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@
6161

6262
unsigned char cleanse_ctr = 0;
6363

64+
#if !defined(_ARM_ARCH__)
65+
6466
void OPENSSL_cleanse(void *ptr, size_t len)
6567
{
6668
unsigned char *p = ptr;
@@ -75,3 +77,4 @@ void OPENSSL_cleanse(void *ptr, size_t len)
7577
ctr += (63 + (size_t)p);
7678
cleanse_ctr = (unsigned char)ctr;
7779
}
80+
#endif

node.gyp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
],
163163
},
164164
'conditions': [
165-
['OS=="linux"', {
165+
['OS in "linux freebsd"', {
166166
'ldflags': [
167167
'-Wl,--whole-archive <(PRODUCT_DIR)/libopenssl.a -Wl,--no-whole-archive',
168168
],
@@ -318,7 +318,7 @@
318318
],
319319
}],
320320
[
321-
'OS=="linux" and node_shared_v8=="false"', {
321+
'OS in "linux freebsd" and node_shared_v8=="false"', {
322322
'ldflags': [
323323
'-Wl,--whole-archive <(V8_BASE) -Wl,--no-whole-archive',
324324
],

0 commit comments

Comments
 (0)