From 6df17aa0fe3704867787761156f98642b6f86c29 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Thu, 14 May 2020 08:24:23 +0100 Subject: 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 --- setup.py | 1 + 1 file changed, 1 insertion(+) (limited to 'setup.py') 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"), -- cgit v1.2.3