From 525f0cd85fa270ee0fb843a8cfdd21dfe98238cd Mon Sep 17 00:00:00 2001 From: Nick Papior Andersen Date: Fri, 27 Feb 2015 08:14:59 +0000 Subject: BUG: rpath was not implemented for numpy.distutils.fcompiler This bug-fix only applies for non gnu-compilers. The fortran compilers in numpy inherited the Ccompier class which had the runtime library directories NotImplemented. Hence the compilers need to define their own runtime library path. I have added that information to the intel/pgi/sun compilers. The rest are either already implemented or I do not know them. I have tested the bug-fix with intel compilers of numpy AND the subsequent installation of scipy (which relies on the fortran compilers). Hence this bug will only occur when linking with the fortran compilers. --- numpy/distutils/fcompiler/sun.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'numpy/distutils/fcompiler/sun.py') diff --git a/numpy/distutils/fcompiler/sun.py b/numpy/distutils/fcompiler/sun.py index 0955f14a1..76ce1cabc 100644 --- a/numpy/distutils/fcompiler/sun.py +++ b/numpy/distutils/fcompiler/sun.py @@ -43,6 +43,9 @@ class SunFCompiler(FCompiler): opt.extend(['fsu', 'sunmath', 'mvec']) return opt + def runtime_library_dir_option(self, dir): + return '-R"%s"' % dir + if __name__ == '__main__': from distutils import log log.set_verbosity(2) -- cgit v1.2.1