openssl: Fix build on Aarch64 with clang. (#4404)
This commit is contained in:
parent
c124fdb7a0
commit
218d55a072
@ -25,6 +25,7 @@
|
|||||||
import llnl.util.tty as tty
|
import llnl.util.tty as tty
|
||||||
|
|
||||||
from spack import *
|
from spack import *
|
||||||
|
import spack.architecture
|
||||||
|
|
||||||
|
|
||||||
class Openssl(Package):
|
class Openssl(Package):
|
||||||
@ -85,6 +86,10 @@ def install(self, spec, prefix):
|
|||||||
options = ['zlib', 'shared']
|
options = ['zlib', 'shared']
|
||||||
if spec.satisfies('@1.0'):
|
if spec.satisfies('@1.0'):
|
||||||
options.append('no-krb5')
|
options.append('no-krb5')
|
||||||
|
# clang does not support the .arch directive in assembly files.
|
||||||
|
if 'clang' in self.compiler.cc and \
|
||||||
|
'aarch64' in spack.architecture.sys_type():
|
||||||
|
options.append('no-asm')
|
||||||
|
|
||||||
config = Executable('./config')
|
config = Executable('./config')
|
||||||
config('--prefix=%s' % prefix,
|
config('--prefix=%s' % prefix,
|
||||||
|
Loading…
Reference in New Issue
Block a user