summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTomoki, Karatsu <49965247+t-karatsu@users.noreply.github.com>2020-05-22 03:50:57 +0900
committerGitHub <noreply@github.com>2020-05-21 20:50:57 +0200
commita9b64bcaf128eb8ab19081328d2a19035ca60e0c (patch)
tree32785ed5be5928b5afd46a6881901cf33df87316 /lib
parent661832a6c6a86ce8b6a5da0bdb5e63e4da4f7955 (diff)
downloadspack-a9b64bcaf128eb8ab19081328d2a19035ca60e0c.tar.gz
spack-a9b64bcaf128eb8ab19081328d2a19035ca60e0c.tar.bz2
spack-a9b64bcaf128eb8ab19081328d2a19035ca60e0c.tar.xz
spack-a9b64bcaf128eb8ab19081328d2a19035ca60e0c.zip
autotools: delete args from postdep objects when %fj (#16274)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/build_systems/autotools.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/spack/spack/build_systems/autotools.py b/lib/spack/spack/build_systems/autotools.py
index 90cad572a1..bb17cce46c 100644
--- a/lib/spack/spack/build_systems/autotools.py
+++ b/lib/spack/spack/build_systems/autotools.py
@@ -11,6 +11,7 @@ import os.path
import shutil
import stat
import sys
+import re
from subprocess import PIPE
from subprocess import check_call
@@ -185,6 +186,8 @@ class AutotoolsPackage(PackageBase):
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