diff options
-rw-r--r-- | mesonbuild/backend/xcodebackend.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/backend/xcodebackend.py b/mesonbuild/backend/xcodebackend.py index 999378f..1c6e15d 100644 --- a/mesonbuild/backend/xcodebackend.py +++ b/mesonbuild/backend/xcodebackend.py @@ -821,7 +821,8 @@ class XCodeBackend(backends.Backend): ldargs += target.link_args linker, stdlib_args = self.determine_linker_and_stdlib_args(target) ldargs += self.build.get_project_link_args(linker, target.subproject, target.for_machine) - ldargs += self.build.get_global_link_args(linker, target.for_machine) + if not isinstance(target, build.StaticLibrary): + ldargs += self.build.get_global_link_args(linker, target.for_machine) cargs = [] for dep in target.get_external_deps(): cargs += dep.get_compile_args() |