Commit 99b36152 by Wesley Shields Committed by Victor M. Alvarez

Add missing openssl include path. (#46)

* Add missing openssl include path.

* Add HAVE_LIBCRYPTO.
parent 21821a39
......@@ -178,6 +178,7 @@ class BuildExtCommand(build_ext):
module.libraries.append('ws2_32')
if building_for_osx:
module.include_dirs.append('/usr/local/opt/openssl/include')
module.include_dirs.append('/opt/local/include')
module.library_dirs.append('/opt/local/lib')
module.include_dirs.append('/usr/local/include')
......@@ -200,6 +201,7 @@ class BuildExtCommand(build_ext):
if (has_function('MD5_Init', libraries=['crypto']) and
has_function('SHA256_Init', libraries=['crypto'])):
module.define_macros.append(('HASH_MODULE', '1'))
module.define_macros.append(('HAVE_LIBCRYPTO', '1'))
module.libraries.append('crypto')
else:
exclusions.append('yara/libyara/modules/hash.c')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment