From 9e219427803c68a24fcc6afa1fb3bbe8a5e4800d Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 16 Dec 2019 13:42:47 -0800 Subject: linkers: Remove get_allow_undefined_args from link.exe PE DLLs don't work like elf or mach-o, there's no way to define symbols at run time, they must all be defined as import or export at link time. As such there's no value in being able to have undefined symbols in MSVC, nor does meson expose an option to change them Fixes: #6342 --- mesonbuild/linkers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mesonbuild/linkers.py b/mesonbuild/linkers.py index 4dae5eb15..051b21ccd 100644 --- a/mesonbuild/linkers.py +++ b/mesonbuild/linkers.py @@ -820,8 +820,7 @@ class VisualStudioLikeLinkerMixin: return l def get_allow_undefined_args(self) -> typing.List[str]: - # link.exe - return self._apply_prefix('/FORCE:UNRESOLVED') + return [] def get_soname_args(self, env: 'Environment', prefix: str, shlib_name: str, suffix: str, soversion: str, darwin_versions: typing.Tuple[str, str], -- cgit v1.2.3