diff --git a/setup.py b/setup.py index 73140be..5c5dcd7 100644 --- a/setup.py +++ b/setup.py @@ -40,11 +40,15 @@ def __init__(self, *args, **kwargs): print("building without Cython") source_extension = ".c" +if os.sys.platform == 'darwin': + libraries = ['System'] +else: + libraries = ['libuuid'] ext_modules = [ Extension('libuuid._uuid', sources=['libuuid/_uuid' + source_extension], - libraries=['uuid']) + libraries=libraries) ]