Welcome! Log In Create A New Profile

Advanced

-rpath linker option?

Jeffrey Walton
January 03, 2014 12:20AM
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"

The path is valid:

$ ls /usr/local/ssl/lib
engines libcrypto.so libssl.a libssl.so.1.0.0
libcrypto.a libcrypto.so.1.0.0 libssl.so pkgconfig

LD_LIBRARY_PATH and LD_PRELOAD tricks don't work because they are
dropped when running as root.

Any ideas how to proceed?

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

-rpath linker option?

Jeffrey Walton January 03, 2014 12:20AM

Re: -rpath linker option?

Maxim Dounin January 03, 2014 08:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 294
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready