[Python-checkins] bpo-32233: Fix build with --with-system-libmpdec. (#4739)

Stefan Krah webhook-mailer at python.org
Wed Dec 6 12:24:23 EST 2017


https://github.com/python/cpython/commit/bd4ed77f73d37df325fc8f1e193b3ce6bc08094d
commit: bd4ed77f73d37df325fc8f1e193b3ce6bc08094d
branch: master
author: Stefan Krah <skrah at bytereef.org>
committer: GitHub <noreply at github.com>
date: 2017年12月06日T18:24:17+01:00
summary:
bpo-32233: Fix build with --with-system-libmpdec. (#4739)
files:
M setup.py
diff --git a/setup.py b/setup.py
index c22de17f953..09e35e50609 100644
--- a/setup.py
+++ b/setup.py
@@ -2069,6 +2069,7 @@ def _decimal_ext(self):
 'Modules',
 '_decimal',
 'libmpdec'))]
+ libraries = ['m']
 sources = [
 '_decimal/_decimal.c',
 '_decimal/libmpdec/basearith.c',
@@ -2164,7 +2165,7 @@ def _decimal_ext(self):
 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,


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /