Fix cpio clang build error (#17963)
undefined reference to '__muloti4', using the proposed fix from https://bugs.llvm.org/show_bug.cgi?id=16404
This commit is contained in:
parent
0642216c31
commit
512fa8e460
1 changed files with 7 additions and 1 deletions
|
@ -20,6 +20,12 @@ class Cpio(AutotoolsPackage, GNUMirrorPackage):
|
|||
build_directory = 'spack-build'
|
||||
|
||||
def flag_handler(self, name, flags):
|
||||
if self.spec.satisfies('%intel') and name == 'cflags':
|
||||
spec = self.spec
|
||||
|
||||
if '%intel' in spec and name == 'cflags':
|
||||
flags.append('-no-gcc')
|
||||
|
||||
if '%clang' in spec and name == 'cflags':
|
||||
flags.append('--rtlib=compiler-rt')
|
||||
|
||||
return (flags, None, None)
|
||||
|
|
Loading…
Reference in a new issue