summaryrefslogtreecommitdiff
path: root/NOTES.UNIX
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2018-02-15 10:06:15 +0100
committerRichard Levitte <levitte@openssl.org>2018-02-15 10:58:31 +0100
commitc3d76bb254eb33dbe2cd23e00f5f135f3c12381c (patch)
tree954205c3c3a4f694c323de946c8cc360cb2ce3d8 /NOTES.UNIX
parent0b80103bfa12fcd461e8642d351fff40d650313b (diff)
downloadopenssl-new-c3d76bb254eb33dbe2cd23e00f5f135f3c12381c.tar.gz
NOTES.UNIX: add additional note about --enable-new-dtags
Reviewed-by: Tim Hudson <tjh@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5374)
Diffstat (limited to 'NOTES.UNIX')
-rw-r--r--NOTES.UNIX12
1 files changed, 12 insertions, 0 deletions
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).