From 5467b7d58b310c3dab975ea924de4e28fec884fc Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sun, 23 Aug 2015 20:07:21 +0300 Subject: Made Fortran static libraries work. Closes #237. --- backends.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'backends.py') diff --git a/backends.py b/backends.py index d3c3157d6..47b39d178 100644 --- a/backends.py +++ b/backends.py @@ -220,6 +220,12 @@ class Backend(): if isinstance(target, build.Executable): commands += dep.get_exe_args() + # Fortran rquires extra include directives. + if compiler.language == 'fortran': + for lt in target.link_targets: + priv_dir = os.path.join(lt.subdir, lt.get_basename() + lt.type_suffix()) + incflag = compiler.get_include_args(priv_dir) + commands += incflag return commands def build_target_link_arguments(self, compiler, deps): -- cgit v1.2.3