autotools: delete args from postdep objects when %fj (#16274)
This commit is contained in:
parent
661832a6c6
commit
a9b64bcaf1
@ -11,6 +11,7 @@
|
||||
import shutil
|
||||
import stat
|
||||
import sys
|
||||
import re
|
||||
from subprocess import PIPE
|
||||
from subprocess import check_call
|
||||
|
||||
@ -185,6 +186,8 @@ def _do_patch_libtool(self):
|
||||
if line == 'pic_flag=""\n':
|
||||
line = 'pic_flag="{0}"\n'\
|
||||
.format(self.compiler.cc_pic_flag)
|
||||
if self.spec.satisfies('%fj') and 'fjhpctag.o' in line:
|
||||
line = re.sub(r'/\S*/fjhpctag.o', '', line)
|
||||
sys.stdout.write(line)
|
||||
|
||||
@property
|
||||
|
Loading…
Reference in New Issue
Block a user