summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorSeth R. Johnson <johnsonsr@ornl.gov>2020-06-28 14:31:59 -0400
committerGitHub <noreply@github.com>2020-06-28 13:31:59 -0500
commit56db9647b11fbca475e4178eac687cc3adbc1664 (patch)
tree4260e4e555f4fc5b6341768bf42919406127c468 /var
parent9a8e9f265e5fbd6399f0cffd9494b500885ad192 (diff)
downloadspack-56db9647b11fbca475e4178eac687cc3adbc1664.tar.gz
spack-56db9647b11fbca475e4178eac687cc3adbc1664.tar.bz2
spack-56db9647b11fbca475e4178eac687cc3adbc1664.tar.xz
spack-56db9647b11fbca475e4178eac687cc3adbc1664.zip
Prevent libffi 3.3 from adding contradictory tuning flags (#17285)
Fixes #17187
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/libffi/package.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libffi/package.py b/var/spack/repos/builtin/packages/libffi/package.py
index 5e952497aa..e1c79588ad 100644
--- a/var/spack/repos/builtin/packages/libffi/package.py
+++ b/var/spack/repos/builtin/packages/libffi/package.py
@@ -25,3 +25,11 @@ class Libffi(AutotoolsPackage, SourcewarePackage):
def headers(self):
# The headers are probably in self.prefix.lib but we search everywhere
return find_headers('ffi', self.prefix, recursive=True)
+
+ def configure_args(self):
+ args = []
+ if self.spec.version >= Version('3.3'):
+ # Spack adds its own target flags, so tell libffi not to
+ # second-guess us
+ args.append('--without-gcc-arch')
+ return args