Browse Source

Mono: Fix static linking on macOS

[ci skip]
Rémi Verschelde 7 years ago
parent
commit
a3a85670a3
1 changed files with 5 additions and 1 deletions
  1. 5 1
      modules/mono/config.py

+ 5 - 1
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')