summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2017-12-06 17:24:17 (GMT)
committerGitHub <noreply@github.com>2017-12-06 17:24:17 (GMT)
commitbd4ed77f73d37df325fc8f1e193b3ce6bc08094d (patch)
treecadaf884d0f82322dedee94abcf6d3b7f387e8fd
parent92a3c6f493ad411e4cf0acdf305ef4876aa90669 (diff)
downloadcpython-bd4ed77f73d37df325fc8f1e193b3ce6bc08094d.zip
cpython-bd4ed77f73d37df325fc8f1e193b3ce6bc08094d.tar.gz
cpython-bd4ed77f73d37df325fc8f1e193b3ce6bc08094d.tar.bz2
bpo-32233: Fix build with --with-system-libmpdec. (#4739)
-rw-r--r--setup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index c22de17..09e35e5 100644
--- a/setup.py
+++ b/setup.py
@@ -2069,6 +2069,7 @@ class PyBuildExt(build_ext):
'Modules',
'_decimal',
'libmpdec'))]
+ libraries = ['m']
sources = [
'_decimal/_decimal.c',
'_decimal/libmpdec/basearith.c',
@@ -2164,7 +2165,7 @@ class PyBuildExt(build_ext):
ext = Extension (
'_decimal',
include_dirs=include_dirs,
- libraries=['m'],
+ libraries=libraries,
define_macros=define_macros,
undef_macros=undef_macros,
extra_compile_args=extra_compile_args,