Commit 394c1322 authored by Denis Bilenko's avatar Denis Bilenko

setup.py: support non-embedding mode for libev and c-ares. Thanks to Örjan Persson.

Based on http://git.42mm.org/?p=python-gevent;a=blob;f=debian/patches/setup-with-cares-and-libev;h=798af501694f1d12cfdaf817bb2e7ad2f07bb2a0;hb=HEAD
parent 114b03c4
......@@ -148,6 +148,9 @@ if libev_embed:
CORE.configure = configure_libev
if sys.platform == "darwin":
os.environ["CFLAGS"] = ("%s %s" % (os.environ.get("CFLAGS", ""), "-U__llvm__")).lstrip()
else:
CORE.libraries.append('ev')
if ares_embed:
ARES.sources += expand('c-ares/*.c')
......@@ -160,6 +163,9 @@ if ares_embed:
if sys.platform != 'darwin':
ARES.libraries += ['rt']
ARES.define_macros += [('CARES_EMBED', '')]
else:
ARES.libraries.append('cares')
ARES.define_macros += [('HAVE_NETDB_H', '')]
def make(done=[]):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment