mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
Patch #752671: NetBSD needs to link libintl to _locale.so.
This commit is contained in:
parent
61e2c9a402
commit
19d173486b
5 changed files with 77 additions and 3 deletions
4
setup.py
4
setup.py
|
@ -339,7 +339,9 @@ class PyBuildExt(build_ext):
|
|||
if have_unicode:
|
||||
exts.append( Extension('unicodedata', ['unicodedata.c']) )
|
||||
# access to ISO C locale support
|
||||
if platform in ['cygwin', 'aix4']:
|
||||
data = open('pyconfig.h').read()
|
||||
m = re.search(r"#s*define\s+WITH_LIBINTL\s+1\s*", data)
|
||||
if m is not None:
|
||||
locale_libs = ['intl']
|
||||
else:
|
||||
locale_libs = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue