Mono: Fix static linking on macOS

[ci skip]
This commit is contained in:
Rémi Verschelde 2017-10-20 18:40:41 +02:00
parent 067fc88488
commit a3a85670a3
1 changed files with 5 additions and 1 deletions

View File

@ -125,7 +125,11 @@ def configure(env):
else: else:
env.Append(LIBS=[mono_lib]) env.Append(LIBS=[mono_lib])
if sys.platform == "darwin":
env.Append(LIBS=['iconv', 'pthread'])
elif sys.platform == "linux" or sys.platform == "linux2":
env.Append(LIBS=['m', 'rt', 'dl', 'pthread']) env.Append(LIBS=['m', 'rt', 'dl', 'pthread'])
else: else:
if mono_static: if mono_static:
raise RuntimeError('mono-static: Not supported with pkg-config. Specify a mono prefix manually') raise RuntimeError('mono-static: Not supported with pkg-config. Specify a mono prefix manually')