diff --git a/uwsgiconfig.py b/uwsgiconfig.py index 588ac957..4cdf374c 100644 --- a/uwsgiconfig.py +++ b/uwsgiconfig.py @@ -452,6 +452,9 @@ class uConf(object): self.ldflags.append('-shared') self.ldflags.append('-fPIC') self.cflags.append('-DUWSGI_AS_SHARED_LIBRARY') + if uwsgi_os == 'Darwin': + self.ldflags.append('-dynamiclib') + self.ldflags.append('-undefined dynamic_lookup') if self.get('embedded'): self.cflags.append('-DUWSGI_EMBEDDED')