diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-04-02 23:25:26 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-04-08 23:15:07 +0300 |
commit | 62b86824f03d6b401f7bc8da6ce68b334726df44 (patch) | |
tree | 8c382044ffa26d7ba2b06ad5227a0d7c5d5aad27 /mesonbuild/compilers.py | |
parent | cbc8d6e537ce9f57436392ce1ce2d4b6384468ae (diff) | |
download | meson-62b86824f03d6b401f7bc8da6ce68b334726df44.zip meson-62b86824f03d6b401f7bc8da6ce68b334726df44.tar.gz meson-62b86824f03d6b401f7bc8da6ce68b334726df44.tar.bz2 |
Make link whole work on OSX.
Diffstat (limited to 'mesonbuild/compilers.py')
-rw-r--r-- | mesonbuild/compilers.py | 5 |
1 files changed, 5 insertions, 0 deletions
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'] |