diff --git a/setup.py b/setup.py index 28363cb..1c28f86 100755 --- a/setup.py +++ b/setup.py @@ -37,7 +37,8 @@ def c_compile(obj, src, ext, cc_args, extra_postargs, pp_opts): cc_args = cc_args + ["-std=c99"] if src.endswith(".c") else cc_args return _compile(obj, src, ext, cc_args, extra_postargs, pp_opts) - if c.compiler_type == "unix" and "gcc" in c.compiler: + if c.compiler_type == "unix" and \ + any(item == "gcc" or item.endswith("-gcc") for item in c.compiler): c._compile = c_compile elif self.compiler.compiler_type == "msvc":