Make link whole work on OSX.

pull/1549/head
Jussi Pakkanen 8 years ago
parent cbc8d6e537
commit 62b86824f0
  1. 5
      mesonbuild/compilers.py

@ -2607,6 +2607,11 @@ class ClangCompiler:
return ['-shared']
def get_link_whole_for(self, args):
if self.clang_type == CLANG_OSX:
result = []
for a in args:
result += ['-Wl,-force_load', a]
return result
return ['-Wl,--whole-archive'] + args + ['-Wl,--no-whole-archive']

Loading…
Cancel
Save