summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-01-06 04:07:16 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2016-01-06 04:07:16 -0800
commita65fa545142b606c4edff08e23d741b5050824ef (patch)
treef1fd5b9dd5d14f6287cc1a2f06e9ce0acec758d4
parent20cbc1d1450edeae24671bce87170f20924a05ad (diff)
parentc18dfa058a208627063d069566a728d8715f984c (diff)
downloadspack-a65fa545142b606c4edff08e23d741b5050824ef.tar.gz
spack-a65fa545142b606c4edff08e23d741b5050824ef.tar.bz2
spack-a65fa545142b606c4edff08e23d741b5050824ef.tar.xz
spack-a65fa545142b606c4edff08e23d741b5050824ef.zip
Merge pull request #270 from eschnett/eschnett/openssl-darwin
Make OpenSSL build on Darwin
-rw-r--r--var/spack/packages/openssl/package.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/var/spack/packages/openssl/package.py b/var/spack/packages/openssl/package.py
index 40648fca49..a24de20cc3 100644
--- a/var/spack/packages/openssl/package.py
+++ b/var/spack/packages/openssl/package.py
@@ -17,12 +17,20 @@ class Openssl(Package):
parallel = False
def install(self, spec, prefix):
+ if spec.satisfies("=darwin-x86_64") or spec.satisfies("=ppc64"):
+ # This needs to be done for all 64-bit architectures (except Linux,
+ # where it happens automatically?)
+ env['KERNEL_BITS'] = '64'
config = Executable("./config")
config("--prefix=%s" % prefix,
- "--openssldir=%s/etc/openssl" % prefix,
+ "--openssldir=%s" % join_path(prefix, 'etc', 'openssl'),
"zlib",
"no-krb5",
"shared")
+ # Remove non-standard compiler options if present. These options are
+ # present e.g. on Darwin. They are non-standard, i.e. most compilers
+ # (e.g. gcc) will not accept them.
+ filter_file(r'-arch x86_64', '', 'Makefile')
make()
make("install")