summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2015-12-22 18:51:49 -0500
committerErik Schnetter <schnetter@gmail.com>2015-12-22 18:51:49 -0500
commita540a68561db4067b66b4d4d0920b217fea4fda4 (patch)
treeb8bbd3f2a8d9d091ef60887953263a2e7abfda7e
parent100ada0ed656eba970864c8829edd53b07b9bf4a (diff)
downloadspack-a540a68561db4067b66b4d4d0920b217fea4fda4.tar.gz
spack-a540a68561db4067b66b4d4d0920b217fea4fda4.tar.bz2
spack-a540a68561db4067b66b4d4d0920b217fea4fda4.tar.xz
spack-a540a68561db4067b66b4d4d0920b217fea4fda4.zip
Make OpenSSL build on Darwin
-rw-r--r--var/spack/packages/openssl/package.py24
1 files changed, 18 insertions, 6 deletions
diff --git a/var/spack/packages/openssl/package.py b/var/spack/packages/openssl/package.py
index 40648fca49..82c315da33 100644
--- a/var/spack/packages/openssl/package.py
+++ b/var/spack/packages/openssl/package.py
@@ -17,12 +17,24 @@ class Openssl(Package):
parallel = False
def install(self, spec, prefix):
- config = Executable("./config")
- config("--prefix=%s" % prefix,
- "--openssldir=%s/etc/openssl" % prefix,
- "zlib",
- "no-krb5",
- "shared")
+ if spec.satisfies("=darwin-x86_64"):
+ perl = which('perl')
+ perl("./Configure",
+ "--prefix=%s" % prefix,
+ "--openssldir=%s/etc/openssl" % prefix,
+ "zlib",
+ "no-krb5",
+ "shared",
+ "darwin64-x86_64-cc")
+ perl('-pi', '-e', 's/-arch x86_64//g', 'Makefile')
+ else:
+ exit(1)
+ config = Executable("./config")
+ config("--prefix=%s" % prefix,
+ "--openssldir=%s/etc/openssl" % prefix,
+ "zlib",
+ "no-krb5",
+ "shared")
make()
make("install")