summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2020-05-14 08:24:23 +0100
committerMichael Williamson <mike@zwobble.org>2020-05-14 08:24:23 +0100
commit6df17aa0fe3704867787761156f98642b6f86c29 (patch)
treebf28491944d724e3914ff9f40cc8f53b8cbda776
parentcc804c7056bec27c7934c269f76dff7616fcea1e (diff)
Pass -lm to compiler when building extension
This attempts to address the manylinux wheels not working on some distributions such as Ubuntu 16.04 due to the removal of the symbol scalbln ( double x, int n ) @@ GLIBC_2.2.5 Original user report: https://github.com/mwilliamson/jq.py/issues/43 Further discussion: https://github.com/joerick/cibuildwheel/issues/343
-rw-r--r--setup.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 7ba8ff6..49d46df 100644
--- a/setup.py
+++ b/setup.py
@@ -104,6 +104,7 @@ jq_extension = Extension(
"jq",
sources=["jq.c"],
include_dirs=[os.path.join(jq_lib_dir, "src")],
+ extra_link_args=["-lm"],
extra_objects=[
os.path.join(jq_lib_dir, ".libs/libjq.a"),
os.path.join(oniguruma_lib_install_dir, "lib/libonig.a"),