[CentOS] Install OpenSSL 1.1.1 on CentOS Linux release 7.9.2009 (Core).

Sat Nov 13 17:02:24 UTC 2021
Jonathan Billings <billings at negate.org>

On Tue, Nov 09, 2021 at 06:17:32PM -0800, Gordon Messmer wrote:
> On 11/9/21 09:30, Kaushal Shriyan wrote:
> > #*./configure LDFLAGS="-L/usr/lib64/openssl11"*
> 
> 
> I believe that at a minimum, you would need:
> 
> ./configure LDFLAGS="-L/usr/lib64/openssl11"
> CFLAGS="-I/usr/include/openssl11"
> 

While you might be able to compile the software with those flags,
you'll not be able to run anything with libraries out of the standard
search path.  And you don't want to add this openssl to the standard
search path, because it will break packaged software.

You'll want to add to CFLAGS="-Wl,-rpath,/usr/lib64/openssl11", so the
linker adds the RPATH to the executable.

Remember not to use this trick when creating RPMs, because that's
generally frowned on and can make rpmbuild complain.

-- 
Jonathan Billings <billings at negate.org>