|
31 | 31 | """ |
32 | 32 | import os |
33 | 33 |
|
34 | | -import easybuild.tools.environment as env |
35 | 34 | import easybuild.tools.systemtools as systemtools |
36 | 35 | from easybuild.tools.toolchain.compiler import Compiler, DEFAULT_OPT_LEVEL |
37 | 36 |
|
@@ -86,18 +85,15 @@ class FujitsuCompiler(Compiler): |
86 | 85 | (systemtools.AARCH64, systemtools.ARM): '-mcpu=generic -mtune=generic', |
87 | 86 | } |
88 | 87 |
|
89 | | - def prepare(self, *args, **kwargs): |
90 | | - super(FujitsuCompiler, self).prepare(*args, **kwargs) |
91 | | - |
92 | | - # make sure the fujitsu module libraries are found (and added to rpath by wrapper) |
93 | | - libdir = os.path.join(os.getenv(TC_CONSTANT_MODULE_VAR), 'lib64') |
94 | | - self.log.debug("Adding %s to $LIBRARY_PATH" % libdir) |
95 | | - env.setvar('LIBRARY_PATH', os.pathsep.join([os.getenv('LIBRARY_PATH'), libdir])) |
96 | | - |
97 | 88 | def _set_compiler_vars(self): |
98 | 89 | super(FujitsuCompiler, self)._set_compiler_vars() |
99 | 90 |
|
100 | 91 | # enable clang compatibility mode |
101 | 92 | # moved to compiler constants to make sure it is always used |
102 | 93 | # self.variables.nappend('CFLAGS', ['Nclang']) |
103 | 94 | # self.variables.nappend('CXXFLAGS', ['Nclang']) |
| 95 | + |
| 96 | + # make sure the fujitsu module libraries are found (and added to rpath by wrapper) |
| 97 | + libdir = os.path.join(os.getenv(TC_CONSTANT_MODULE_VAR), 'lib64') |
| 98 | + self.log.debug("Adding %s to $LDFLAGS" % libdir) |
| 99 | + self.variables.nappend('LDFLAGS', [libdir]) |
0 commit comments