Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
gyp: preserve v8dbg syms on freebsd too
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed Aug 17, 2014
1 parent fd80a31 commit 181b8a5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
5 changes: 4 additions & 1 deletion deps/openssl/openssl.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,10 @@
],
}],
['target_arch=="arm"', {
'sources': ['openssl/crypto/armcap.c'],
'sources': [
'openssl/crypto/armcap.c',
'openssl/crypto/armv4cpuid.S',
],
}],
],
'include_dirs': [
Expand Down
6 changes: 4 additions & 2 deletions deps/openssl/openssl/crypto/cryptlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -661,9 +661,11 @@ const char *CRYPTO_get_lock_name(int type)
return(sk_OPENSSL_STRING_value(app_locks,type-CRYPTO_NUM_LOCKS));
}

#if defined(__i386) || defined(__i386__) || defined(_M_IX86) || \
#if !defined(_ARM_ARCH__) && \
(defined(__i386) || defined(__i386__) || defined(_M_IX86) || \
defined(__INTEL__) || \
defined(__x86_64) || defined(__x86_64__) || defined(_M_AMD64) || defined(_M_X64)
defined(__x86_64) || defined(__x86_64__) || defined(_M_AMD64) || \
defined(_M_X64))

unsigned int OPENSSL_ia32cap_P[2];
unsigned long *OPENSSL_ia32cap_loc(void)
Expand Down
3 changes: 3 additions & 0 deletions deps/openssl/openssl/crypto/mem_clr.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@

unsigned char cleanse_ctr = 0;

#if !defined(_ARM_ARCH__)

void OPENSSL_cleanse(void *ptr, size_t len)
{
unsigned char *p = ptr;
Expand All @@ -75,3 +77,4 @@ void OPENSSL_cleanse(void *ptr, size_t len)
ctr += (63 + (size_t)p);
cleanse_ctr = (unsigned char)ctr;
}
#endif
4 changes: 2 additions & 2 deletions node.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
],
},
'conditions': [
['OS=="linux"', {
['OS in "linux freebsd"', {
'ldflags': [
'-Wl,--whole-archive <(PRODUCT_DIR)/libopenssl.a -Wl,--no-whole-archive',
],
Expand Down Expand Up @@ -318,7 +318,7 @@
],
}],
[
'OS=="linux" and node_shared_v8=="false"', {
'OS in "linux freebsd" and node_shared_v8=="false"', {
'ldflags': [
'-Wl,--whole-archive <(V8_BASE) -Wl,--no-whole-archive',
],
Expand Down

0 comments on commit 181b8a5

Please sign in to comment.