-
-
Save bugQ/2024012 to your computer and use it in GitHub Desktop.
Build latest OpenSSL Universal Binary on OSX (static)
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="1.0.0e" | |
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 darwin-i386-cc | |
make | |
cd ../ | |
cd openssl_x86_64 | |
./Configure darwin64-x86_64-cc | |
make | |
cd ../ | |
libtool -static openssl_i386/libcrypto.1.0.0.a openssl_x86_64/libcrypto.1.0.0.a -o libcrypto.1.0.0.a | |
libtool -static openssl_i386/libssl.1.0.0.a openssl_x86_64/libssl.1.0.0.a -o libssl.1.0.0.a | |
rm openssl-$OPENSSL_VERSION.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This fails since the url is invalid. Use https instead: https://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz.