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:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Harmen Stoppels
					Harmen Stoppels