I have a project that links to libssl.so and I’m hitting a bug in libssl and never versions of the lib fixes it. However on the system I’m working I don’t have root account so I’ve built libssl and prerequirements myself under $HOME/opt.
Now, when I’m doing:
./configure --prefix=`$HOME/opt`
make
the build system still uses the older system-wide version of libssl.
I’m trying to find the proper way to “hack” autotools to link with libs I’ve compiled.
There’s always
./configure LDFLAGS=-L$HOME/opt/lib CPPFLAGS=-I$HOME/opt/include. But that method globally uses headers from that prefix and globally links against libs located there.Many projects provide
AC_ARG_WITHs to allow to customise paths, e.g.or
in analogy to autoconf’s
--x-includesand--x-librariesBut I guess it’s a question of personal taste.
Just noticed you don’t want to change your files, in that case you could just add the library in question to the the
LIBSvariable, or use an rpath:or