-
-
Save mbgearhead/6381e1537818cf5b3dd6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
OPENSSL_VERSION="0.9.8zf" | |
curl -O http://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz | |
tar -xvzf openssl-$OPENSSL_VERSION.tar.gz | |
mv openssl-$OPENSSL_VERSION openssl_i386 | |
tar -xvzf openssl-$OPENSSL_VERSION.tar.gz | |
mv openssl-$OPENSSL_VERSION openssl_x86_64 | |
cd openssl_i386 | |
./Configure | |
make clean && make dclean | |
export KERNEL_BITS=32 | |
./Configure darwin-i386-cc no-ssl2 -shared --prefix=/usr --openssldir=/usr/ssl | |
make depend | |
make | |
sudo make install | |
cd ../ | |
cd openssl_x86_64 | |
./Configure | |
make clean && make dclean | |
export KERNEL_BITS=64 | |
./Configure darwin64-x86_64-cc no-ssl2 enable-ec_nistp_64_gcc_128 -shared --prefix=/usr --openssldir=/usr/ssl | |
make depend | |
make | |
sudo make install | |
cd ../ | |
sudo lipo -create openssl_i386/libcrypto.0.9.8.dylib openssl_x86_64/libcrypto.0.9.8.dylib -output /usr/lib/libcrypto.0.9.8.dylib | |
sudo lipo -create openssl_i386/libssl.0.9.8.dylib openssl_x86_64/libssl.0.9.8.dylib -output /usr/lib/libssl.0.9.8.dylib | |
rm openssl-$OPENSSL_VERSION.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment