Prevent libffi 3.3 from adding contradictory tuning flags (#17285)
Fixes #17187
This commit is contained in:
parent
9a8e9f265e
commit
56db9647b1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user