build-android.sh 572 B

123456789101112131415
  1. #!/bin/bash
  2. # Based on: https://wiki.openssl.org/index.php/Android
  3. rm -rf ./openssl-1.0.2h
  4. tar xvf openssl-1.0.2h.tar.gz
  5. source ./setenv-android.sh
  6. cd openssl-1.0.2h
  7. perl -pi -e 's/install: all install_docs install_sw/install: install_docs install_sw/g' Makefile.org
  8. # TODO: strip out more unnecessary components
  9. ./config no-shared no-ssl2 no-ssl3 no-comp no-hw no-md2 no-md4 no-rc2 no-rc5 no-krb5 no-ripemd160 no-idea no-gost no-camellia no-seed no-3des no-heartbeats --openssldir=../ssl
  10. perl -pi -e 's/-O3/-Os -mfloat-abi=softfp/g' Makefile
  11. make depend
  12. make all
  13. cd ..