Skip to content

Commit

Permalink
NOTES.UNIX: add additional note about --enable-new-dtags
Browse files Browse the repository at this point in the history
Reviewed-by: Tim Hudson <[email protected]>
(Merged from openssl/openssl#5374)
  • Loading branch information
levitte committed Feb 15, 2018
1 parent 0b80103 commit c3d76bb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions NOTES.UNIX
Original file line number Diff line number Diff line change
Expand Up @@ -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).

0 comments on commit c3d76bb

Please sign in to comment.