-rpath linker option?

Maxim Dounin mdounin at mdounin.ru
Fri Jan 3 13:37:54 UTC 2014


On Fri, Jan 03, 2014 at 12:18:27AM -0500, Jeffrey Walton wrote:

> I'm having trouble with dll hell on Debian and Ubuntu with OpenSSL.
> Debian and Ubuntu insist on runtime linking with the copy in /usr/lib.
> Fedora and Red Hat are OK because they don't use OpenSSL by default,
> so they are not present in /usr/lib.
> I've tried specifying a rpath in ld options:
>   --with-ld-opt="-rpath=$OPENSSL_LIB_DIR -ldl"
> That results in:
>   checking for C compiler ... found
>    + using GNU C compiler
>   checking for --with-ld-opt="-rpath=/usr/local/ssl/lib -ldl" ... not found
>   ./auto/configure: error: the invalid value in
> --with-ld-opt="-rpath=/usr/local/ssl/lib -ldl"

Try looking into objs/autoconf.err.  Most likely, your cc want it 
to be spelled like "-Wl,-rpath=...".

Maxim Dounin

More information about the nginx mailing list