31337,
Thanks for showing the compile-from-source after force-installing the "improved" openssl library.
However, what we would like to do is to install the openssl library as well as boost, boost-devel, boost-thread, db4 and db4-devel in a "chroot" environment and then build the bitcoind in that environment.
That way, you don't overwrite your default openssl CentOS library (which is generally not recommended)
I think it will more or less require the following six steps:
1. Compile the ECDSA openssl library with mock as per previous instructions. Installed in the build root, i.e. DO NOT overwrite your normal openssl library.
2. Download bitcoind source and create a "spec" file for it so it can be converted into an rpm package.
3. In the "spec" file, specify the following libraries as buildrequires: boost, boost-devel, boost-thread, db4, db4-devel and the ECDSA-capable openssl library. (
http://www.rpm.org/max-rpm/ch-rpm-inside.html). I also assume you have to note boost and db4 as library requires (if you link then dynamically). Install the libraries (using mock?)
4. Compile the bitcoind source package in the same chroot environment - this ensures it can find the new openssl library. Mock seems to be the right tool for the job.
5. Ensure that "our" openssl library is STATICALLY linked - this prevents runtime link attempts to the system openssl library, which cannot do elliptic curves.
6. Install the compiled bitcoind binary rpm.
I'm not yet 100% sure how the script for the above 6 steps will look like, but it will be similar to yours, with the exception of using rpmbuild and/or mock in the make process.
If anyone who knows mock/rpmbuild/chroot want to attempt to script the above 6 steps, please jump right in!!!