From ba1d3ddd7f527d2e6e41b86da0f2887cc4dec83a Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 18 Feb 2015 06:10:23 -0500 Subject: [PATCH] * Move -lc++ link arg to only be used if darwin is OS. Should actually check whether GCC is compiler --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index a4bffcaf3..d3f2e5e83 100644 --- a/setup.py +++ b/setup.py @@ -118,9 +118,10 @@ def main(modules, is_pypy): language = "cpp" includes = ['.', path.join(sys.prefix, 'include')] compile_args = ['-O3'] - link_args = ['-lc++'] + link_args = [] if sys.prefix == 'darwin': compile_args.append(['-mmacosx-version-min=10.8', '-stdlib=libc++']) + link_args.append('-lc++') if use_cython: exts = cython_exts(modules, language, includes, compile_args, link_args) else: