summaryrefslogtreecommitdiff
path: root/setupinfo.py
diff options
context:
space:
mode:
authorPan Fan <nightsailer@gmail.com>2016-08-20 02:06:09 +0800
committerPan Fan <nightsailer@gmail.com>2016-08-20 02:06:09 +0800
commitbfdca59a235b29568e4ad7069951878ec7594d5b (patch)
treeb4c32dee838e13406cda6b72ba7084d9f02abd1e /setupinfo.py
parent3e868e5b1de340bf47916c1e53703f89796da866 (diff)
downloadpython-lxml-bfdca59a235b29568e4ad7069951878ec7594d5b.tar.gz
link with "-lrt" error on darwin (OS X)
Diffstat (limited to 'setupinfo.py')
-rw-r--r--setupinfo.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/setupinfo.py b/setupinfo.py
index e7bbd098..844c8cb9 100644
--- a/setupinfo.py
+++ b/setupinfo.py
@@ -238,6 +238,8 @@ def libraries():
libs.extend(['zlib', 'WS2_32'])
elif OPTION_STATIC:
libs = ['rt', 'z', 'm']
+ elif sys.platform in ('darwin',):
+ libs = ['xslt', 'exslt', 'xml2', 'z', 'm']
else:
libs = ['xslt', 'exslt', 'rt', 'xml2', 'z', 'm']
return libs