aboutsummaryrefslogtreecommitdiff
path: root/ninjabackend.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2014-09-03 22:13:14 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2014-09-03 22:13:14 +0300
commit3ed22fcc56877ca974e31b7fd80343b126f866aa (patch)
tree3e8663e88105715a32b94bd4abf45c4cd62ceab1 /ninjabackend.py
parent1c0a735e00e12140817432f5b1218f388f59b287 (diff)
downloadmeson-3ed22fcc56877ca974e31b7fd80343b126f866aa.zip
meson-3ed22fcc56877ca974e31b7fd80343b126f866aa.tar.gz
meson-3ed22fcc56877ca974e31b7fd80343b126f866aa.tar.bz2
Use external libs of static libraries when the static library is linked to a final target.
Diffstat (limited to 'ninjabackend.py')
-rw-r--r--ninjabackend.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ninjabackend.py b/ninjabackend.py
index fecdbf3..08e43b4 100644
--- a/ninjabackend.py
+++ b/ninjabackend.py
@@ -1252,6 +1252,10 @@ rule FORTRAN_DEP_HACK
if not(isinstance(target, build.StaticLibrary)):
for dep in target.get_external_deps():
commands += dep.get_link_args()
+ for d in target.get_dependencies():
+ if isinstance(d, build.StaticLibrary):
+ for dep in d.get_external_deps():
+ commands += dep.get_link_args()
commands += linker.build_rpath_args(self.environment.get_build_dir(),\
target.get_rpaths(), target.install_rpath)
if self.environment.coredata.coverage: