From 08e1cf211c706f9538c72dac6b93012779277855 Mon Sep 17 00:00:00 2001 From: Ventero Date: Thu, 14 Aug 2014 21:35:39 +0200 Subject: [PATCH] Fix symbol lookup error in the Mono plugin on OS X. On OS X, mono libraries have to link against the Foundation framework. --- plugins/mono/uwsgiplugin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/mono/uwsgiplugin.py b/plugins/mono/uwsgiplugin.py index e03cdf2c..3eac98c6 100644 --- a/plugins/mono/uwsgiplugin.py +++ b/plugins/mono/uwsgiplugin.py @@ -6,6 +6,9 @@ LDFLAGS = [] LIBS = os.popen('pkg-config --libs mono-2').read().rstrip().split() GCC_LIST = ['mono_plugin'] +if os.uname()[0] == 'Darwin': + LIBS.append('-framework Foundation') + def post_build(config): if os.system("sn -k plugins/mono/uwsgi.key") != 0: os._exit(1)