NOTES.UNIX: add additional note about --enable-new-dtags
authorRichard Levitte <levitte@openssl.org>
Thu, 15 Feb 2018 09:06:15 +0000 (10:06 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 15 Feb 2018 09:58:31 +0000 (10:58 +0100)
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5374)

NOTES.UNIX

index 43146e9ed08f1dadc705dd77ea35f205673be587..32361072a5050ad77b211050a0bb6dc8bcae1ec1 100644 (file)
 
     $ ./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).