[openssl-dev] Cross-compiling, --install_prefix deprecated

Catalin Vasile cata.vasile at nxp.com
Mon Jul 25 09:45:05 UTC 2016


Hi,

I keep building/testing features for OpenSSL for an embedded system and I need to be able to send my work on the board.
The build scenario is something like this:
1. make/build
2. install in temporary NFS shared folder
3. on the board I run a bash script that just does a copy in the regular /usr folder

On older releases, the Configure script in OpenSSL had a "--install_prefix" flag that, when "make install" was issued, it installed all the things in the specified install prefix, but the whole library saw itself as being installed in /usr, although I might have been installed it in /home/....
When I issued the copy script on the board, the files were actually copied at /usr, so the library knew a correct location when ran on the board.
Using the "--prefix" on the older build got the library in the correct location, but when copied on the board the binaries ran nuts because it was yelling "why aren't my files in /home/...".
Now on the newer builds I can't find "--install_prefix", and setting "--prefix" "--openssldir" and "--libdir" makes my "make install" build running in a lot of errors.

Long story short: How do I install the newest OpenSSL version in a temporary folder, but also make the system that uses it see it in the regular /usr folder after I copy it there?

Cata


More information about the openssl-dev mailing list