diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-10-20 18:40:41 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2017-10-20 22:11:55 +0200 |
commit | a3a85670a338388aa93c40e49d60cbad834cba11 (patch) | |
tree | 047634fa5d510f780e3e8cf6d594d6b5d57345c3 | |
parent | 067fc8848884a42420055229c1186b4615303338 (diff) |
Mono: Fix static linking on macOS
[ci skip]
-rw-r--r-- | modules/mono/config.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/mono/config.py b/modules/mono/config.py index 13b9a4b1e6..0833d30ce1 100644 --- a/modules/mono/config.py +++ b/modules/mono/config.py @@ -125,7 +125,11 @@ def configure(env): else: env.Append(LIBS=[mono_lib]) - env.Append(LIBS=['m', 'rt', 'dl', 'pthread']) + if sys.platform == "darwin": + env.Append(LIBS=['iconv', 'pthread']) + elif sys.platform == "linux" or sys.platform == "linux2": + env.Append(LIBS=['m', 'rt', 'dl', 'pthread']) + else: if mono_static: raise RuntimeError('mono-static: Not supported with pkg-config. Specify a mono prefix manually') |