From 59fdb1b9ff89e0d5d7073a05f59f161e286975a7 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Tue, 6 Dec 2016 19:44:05 +0200 Subject: [PATCH] Add unresolved symbol arg to link line in VS backends. For some reason VS does not pick it up even though it is visible in the linker option box. --- mesonbuild/backend/vs2010backend.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py index 15bebbaa1..5be780c42 100644 --- a/mesonbuild/backend/vs2010backend.py +++ b/mesonbuild/backend/vs2010backend.py @@ -783,6 +783,8 @@ class Vs2010Backend(backends.Backend): extra_link_args += l if not isinstance(target, build.StaticLibrary): extra_link_args += target.link_args + if isinstance(target, build.SharedModule): + extra_link_args += compiler.get_std_shared_module_link_args() # External deps must be last because target link libraries may depend on them. for dep in target.get_external_deps(): extra_link_args += dep.get_link_args()