summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDiana Bite <diana.bite@arm.com>2017-05-31 12:41:24 +0100
committerAdam J. Stewart <ajstewart426@gmail.com>2017-05-31 06:41:24 -0500
commit218d55a072fb57583d4e1738989ebeff7d2f6bd8 (patch)
tree24f968ab9f665d1fde12a5e403c85ec4be8e60c3 /var
parentc124fdb7a0c800d0d72e659e1053501f3e2247a4 (diff)
downloadspack-218d55a072fb57583d4e1738989ebeff7d2f6bd8.tar.gz
spack-218d55a072fb57583d4e1738989ebeff7d2f6bd8.tar.bz2
spack-218d55a072fb57583d4e1738989ebeff7d2f6bd8.tar.xz
spack-218d55a072fb57583d4e1738989ebeff7d2f6bd8.zip
openssl: Fix build on Aarch64 with clang. (#4404)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/openssl/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/openssl/package.py b/var/spack/repos/builtin/packages/openssl/package.py
index 204debbc5f..67f978e80c 100644
--- a/var/spack/repos/builtin/packages/openssl/package.py
+++ b/var/spack/repos/builtin/packages/openssl/package.py
@@ -25,6 +25,7 @@
import llnl.util.tty as tty
from spack import *
+import spack.architecture
class Openssl(Package):
@@ -85,6 +86,10 @@ class Openssl(Package):
options = ['zlib', 'shared']
if spec.satisfies('@1.0'):
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('--prefix=%s' % prefix,