summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-06-14 21:03:05 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-06-14 21:03:05 (GMT)
commit19d173486b2263a269260343d65ac3929c89297e (patch)
tree2e95896d03cf0851f9e9a59a974b9a7080225424 /setup.py
parent61e2c9a402106664142fa1e26ac5d938b2f95d1b (diff)
downloadcpython-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.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 76005a1..d461880 100644
--- a/setup.py
+++ b/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 = []