From c6dbf98a055bb0fe1d36fc9f4f757b67ca613f01 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sat, 21 Feb 2015 14:59:16 +0200 Subject: [PATCH] Do not use linker arguments of dependencies' dependencies if the target is a static library because the static linker does not understand them. --- ninjabackend.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ninjabackend.py b/ninjabackend.py index 42ebf3dd9..4fa47347a 100644 --- a/ninjabackend.py +++ b/ninjabackend.py @@ -1299,10 +1299,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() + 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: