determine_linker(): choose static cross linker for cross compiling

somewhere after 0.29.0 a bug was introduced where the LINK_ARGS of the
native static linker were used instead of the cross static linker
pull/595/head
Noam Meltzer 9 years ago
parent 24f2a6bf02
commit 038e575d78
  1. 5
      mesonbuild/backend/backends.py

@ -226,7 +226,10 @@ class Backend():
def determine_linker(self, target, src):
if isinstance(target, build.StaticLibrary):
return self.build.static_linker
if self.build.static_cross_linker is not None:
return self.build.static_cross_linker
else:
return self.build.static_linker
if len(self.build.compilers) == 1:
return self.build.compilers[0]
# Currently a bit naive. C++ must

Loading…
Cancel
Save