From 383ed71232f738317a3bb13ba2b9f5d9008cc6f0 Mon Sep 17 00:00:00 2001 From: boldx Date: Tue, 6 Aug 2019 00:09:28 +0200 Subject: [PATCH] Fixes build_static error "ld: cannot find -lm -lcrypto". --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 2d2869a..5f69599 100644 --- a/setup.py +++ b/setup.py @@ -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')