Skip to content

Instantly share code, notes, and snippets.

@indutny
Created July 3, 2012 20:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save indutny/4cdf1f81da1953508fa9 to your computer and use it in GitHub Desktop.
Save indutny/4cdf1f81da1953508fa9 to your computer and use it in GitHub Desktop.
diff --git a/deps/openssl/openssl.gyp b/deps/openssl/openssl.gyp
index 7a031ec..fef74b5 100644
--- a/deps/openssl/openssl.gyp
+++ b/deps/openssl/openssl.gyp
@@ -20,6 +20,10 @@
'OPENSSL_NO_GOST',
'OPENSSL_NO_HW_PADLOCK',
'OPENSSL_NO_TTY',
+
+ # performance stuff
+# 'OPENSSL_BN_ASM_PART_WORDS',
+ # 'OPENSSL_BN_ASM_MONT'
],
'sources': [
'openssl/ssl/bio_ssl.c',
@@ -179,7 +183,6 @@
'openssl/crypto/bio/bss_null.c',
'openssl/crypto/bio/bss_sock.c',
'openssl/crypto/bn/bn_add.c',
- 'openssl/crypto/bn/bn_asm.c',
'openssl/crypto/bn/bn_blind.c',
'openssl/crypto/bn/bn_const.c',
'openssl/crypto/bn/bn_ctx.c',
@@ -650,9 +653,15 @@
}],
['target_arch=="ia32"', {
'variables': {'openssl_config_path': 'config/piii'},
+ 'sources': [
+ 'openssl/crypto/bn/bn_asm.c',
+ ]
}, {
'variables': {'openssl_config_path': 'config/k8'},
- }],
+ 'sources': [
+ 'openssl/crypto/bn/asm/x86_64-gcc.c'
+ ]
+ }]
],
'include_dirs': [
'.',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment