diff --git a/setup.py b/setup.py index 96ed416f237..ca4bf9f881e 100644 --- a/setup.py +++ b/setup.py @@ -621,9 +621,9 @@ class PyBuildExt(build_ext): ['/usr/local/include', '/usr/pkg/include']) iconv_libs = find_library_file(self.compiler, 'iconv', lib_dirs, ['/usr/local/lib', '/usr/pkg/lib']) - - if iconv_incs: - if iconv_libs: + + if platform not in ['darwin'] and iconv_incs is not None: + if iconv_libs is not None: iconv_libraries = ['iconv'] else: iconv_libraries = [] # in libc