Do not use linker arguments of dependencies' dependencies if the target is a static library because the static linker does not understand them.

pull/43/head
Jussi Pakkanen 10 years ago
parent f5ad718f3a
commit c6dbf98a05
  1. 8
      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:

Loading…
Cancel
Save