diff options
-rw-r--r-- | lib/spack/spack/build_systems/autotools.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/spack/spack/build_systems/autotools.py b/lib/spack/spack/build_systems/autotools.py index 1f490058de..50f0208741 100644 --- a/lib/spack/spack/build_systems/autotools.py +++ b/lib/spack/spack/build_systems/autotools.py @@ -212,7 +212,12 @@ class AutotoolsPackage(PackageBase): .format(self.compiler.cc_pic_flag), libtool_path) if self.spec.satisfies('%fj'): - fs.filter_file(r'/\S*/fjhpctag.o', '', libtool_path) + fs.filter_file('-nostdlib', '', libtool_path) + rehead = r'/\S*/' + objfile = ['fjcrt0.o', 'fjlang08.o', 'fjomp.o', + 'crti.o', 'crtbeginS.o', 'crtendS.o'] + for o in objfile: + fs.filter_file(rehead + o, '', libtool_path) @property def configure_directory(self): |