Solaris10 / OpenSSL 1.0.0l ビルド

久々にSolarisでビルドする必要が出たのでメモ。

参考
http://openssl.6102.n7.nabble.com/Runpath-definition-missing-for-libssl-so-td1375.html
https://groups.google.com/forum/#!topic/mailing.openssl.dev/F8tosbpFilE

export PATH=/usr/sfw/bin:/usr/sfw/sbin:/usr/xpg4/bin:/usr/ccs/bin:/usr/sbin:/usr/bin
export LD_OPTIONS='-L/usr/local/openssl-1.0.0l/lib -R/usr/local/openssl-1.0.0l/lib'
./Configure --prefix=/usr/local/openssl-1.0.0l no-asm shared solaris-x86-gcc
gmake
dump -Lv libssl.so |grep PATH
unset LD_OPTIONS
vi test/testssl
gmake test
gmake install