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 <billi...@negate.org>
_______________________________________________
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos

Reply via email to