Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add some libpaths for SSL

  • Loading branch information...
commit 27ec33aad73046b01fe23525e4d596771d2945be 1 parent ac9d9f4
@ry ry authored
Showing with 8 additions and 3 deletions.
  1. +8 −3 wscript
View
11 wscript
@@ -136,13 +136,18 @@ def configure(conf):
if conf.check_cfg(package='openssl',
args='--cflags --libs',
- #libpath=['/usr/lib', '/usr/local/lib'],
uselib_store='OPENSSL'):
conf.env["USE_OPENSSL"] = True
conf.env.append_value("CXXFLAGS", "-DHAVE_OPENSSL=1")
else:
- libcrypto = conf.check(lib='crypto', uselib_store='OPENSSL')
- libssl = conf.check(lib='ssl', uselib_store='OPENSSL')
+ libssl = conf.check_cc(lib='ssl',
+ header_name='openssl/ssl.h',
+ function_name='SSL_library_init',
+ libpath=['/usr/lib', '/usr/local/lib', '/opt/local/lib', '/usr/sfw/lib'],
+ uselib_store='OPENSSL')
+ libcrypto = conf.check_cc(lib='crypto',
+ header_name='openssl/crypto.h',
+ uselib_store='OPENSSL')
if libcrypto and libssl:
conf.env["USE_OPENSSL"] = True
conf.env.append_value("CXXFLAGS", "-DHAVE_OPENSSL=1")
Please sign in to comment.
Something went wrong with that request. Please try again.