| #!/bin/bash |
| |
| set -e |
| |
| OPENSSL=openssl-1.0.2 |
| OPENSSL_SOURCE=$OPENSSL.tar.gz |
| |
| CONFIG="shared" |
| |
| TOP=`pwd` |
| |
| rm -rf dist |
| mkdir dist |
| rm -rf build |
| mkdir build |
| cd build |
| tar zxfv ../$OPENSSL_SOURCE |
| cd $OPENSSL |
| |
| ./Configure experimental-jpake --prefix=/usr --openssldir=/etc/openssl shared darwin64-x86_64-cc |
| # Build debuggable openssl libraries, since they are nicer to work with. |
| find . -name Makefile | xargs sed -i -e 's#-O3#-g#g' |
| |
| make depend && make |
| make INSTALL_PREFIX=$TOP/dist install_sw |
| |
| # This confuses libcurl and doesn't work well for x-compling anyway |
| rm -r ${TOP}/dist/usr/lib/pkgconfig |
| |
| cd ../.. |