Fixes build_static error "ld: cannot find -lm -lcrypto".

This commit is contained in:
boldx 2019-08-06 00:09:28 +02:00
parent 51ef96fdf4
commit 383ed71232

View file

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