diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-06-14 21:03:05 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-06-14 21:03:05 (GMT) |
commit | 19d173486b2263a269260343d65ac3929c89297e (patch) | |
tree | 2e95896d03cf0851f9e9a59a974b9a7080225424 /setup.py | |
parent | 61e2c9a402106664142fa1e26ac5d938b2f95d1b (diff) | |
download | cpython-19d173486b2263a269260343d65ac3929c89297e.zip cpython-19d173486b2263a269260343d65ac3929c89297e.tar.gz cpython-19d173486b2263a269260343d65ac3929c89297e.tar.bz2 |
Patch #752671: NetBSD needs to link libintl to _locale.so.
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 = [] |