nixnax

tkil's openssl build file

Jun 26th, 2013
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. openssl build file from <tkil> (#openssl on freenode)
  2.  
  3. Note how he uses perl to add /crypto/include to all the compiles in Makefile
  4.  
  5. # ======================================================================
  6. # openssl
  7.  
  8. bf=$done/openssl
  9.  
  10. if [ ! -e $bf ]
  11. then
  12.  
  13. v=1.0.1e
  14.  
  15. cd ~/Source
  16. rm -rf openssl-$v openssl-build
  17. tar xf /opt/cross/downloads/openssl-$v.tar.gz
  18. cp -r -l openssl-$v openssl-build
  19. cd openssl-build
  20. ./config --prefix=/opt/crypto -d \
  21. threads zlib shared \
  22. no-idea no-mdc2 no-rc5 \
  23. -DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS
  24.  
  25. # sigh...
  26. perl -i~ -plwe 's!^(CFLAG=.*$)!$1 -DPURIFY -I /opt/crypto/include!' Makefile
  27.  
  28. make depend
  29. make
  30. make install
  31.  
  32. touch $bf
  33.  
  34. fi
Advertisement
Add Comment
Please, Sign In to add comment