From 62b86824f03d6b401f7bc8da6ce68b334726df44 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sun, 2 Apr 2017 23:25:26 +0300 Subject: Make link whole work on OSX. --- mesonbuild/compilers.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mesonbuild/compilers.py') diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py index 54e959c..c8ce487 100644 --- a/mesonbuild/compilers.py +++ b/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'] -- cgit v1.1