aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/build.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2019-09-27 14:33:35 -0400
committerXavier Claessens <xclaesse@gmail.com>2019-10-01 13:06:45 -0400
commita3153747b97512b57309e493b8b6545994d0a106 (patch)
tree86f6e696c2471d3c01c018b2f5e8b3c55ee19476 /mesonbuild/build.py
parent19fc692b2554a03c0452001ca17d635f2445fafa (diff)
downloadmeson-a3153747b97512b57309e493b8b6545994d0a106.zip
meson-a3153747b97512b57309e493b8b6545994d0a106.tar.gz
meson-a3153747b97512b57309e493b8b6545994d0a106.tar.bz2
Do not promote to link_whole when an internal library links to another
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r--mesonbuild/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index 49c1808..96bacaa 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -1068,7 +1068,7 @@ You probably should put it in link_with instead.''')
def link(self, target):
for t in listify(target, unholder=True):
- if isinstance(self, StaticLibrary) and t.is_internal():
+ if isinstance(self, StaticLibrary) and self.need_install and t.is_internal():
# When we're a static library and we link_with to an
# internal/convenience library, promote to link_whole.
return self.link_whole(t)