Merge pull request #1 from boldx/build_static_linker_args_fix

Fixes build_static error "ld: cannot find -lm -lcrypto".
This commit is contained in:
Charles Leifer 2019-08-07 03:03:19 +00:00 committed by GitHub
commit 5b557deffd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,7 +103,7 @@ class AmalgationLibSqliteBuilder(build_ext):
if sys.platform != "win32":
# Include math library, required for fts5, and crypto.
ext.extra_link_args.append("-lm -lcrypto")
ext.extra_link_args.extend(["-lm", "-lcrypto"])
else:
# Try to locate openssl.
openssl_conf = os.environ.get('OPENSSL_CONF')