autotools.py: removed some options from libtool only for Fujitsu. (#19217)

This commit is contained in:
Tomoki, Karatsu 2020-10-12 21:42:49 +09:00 committed by GitHub
parent 93f8b14de5
commit db16f3e0d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -212,7 +212,12 @@ def _patch_libtool(self, libtool_path):
.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):