X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=NOTES.UNIX;h=32361072a5050ad77b211050a0bb6dc8bcae1ec1;hb=c20e3b282c26205f39a89a23664245475d4d7cbc;hp=43146e9ed08f1dadc705dd77ea35f205673be587;hpb=45632ee3bb7ab4ed405d5251d76dd5b94d782adb;p=oweals%2Fopenssl.git diff --git a/NOTES.UNIX b/NOTES.UNIX index 43146e9ed0..32361072a5 100644 --- a/NOTES.UNIX +++ b/NOTES.UNIX @@ -28,3 +28,15 @@ $ ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl \ -Wl,-rpath,'$(LIBRPATH)' + + On modern systems using GNU ld.so, a better choice may be to use the + new dtags, like this: + + $ ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl \ + -Wl,--enable-new-dtags,-rpath,'$(LIBRPATH)' + + This sets DT_RUNPATH instead of DT_RPATH. DT_RUNPATH is considered after + the environment variable LD_LIBRARY_PATH, while DT_RPATH is considered + before that environment variable (which means that the values in that + environment variable won't matter if the library is found in the + paths given by DT_RPATH).