Skip to content

Commit cd86869

Browse files
committed
On Linux, use --enable-new-dtags when specifying -rpath to linker.
This should allow LD_LIBRARY_PATH to work as desired. Per trouble report from Andy Colson.
1 parent 72ee670 commit cd86869

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/makefiles/Makefile.linux

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
AROPT = crs
22
export_dynamic = -Wl,-E
3-
rpath = -Wl,-rpath,'$(rpathdir)'
3+
# Use --enable-new-dtags to generate DT_RUNPATH instead of DT_RPATH.
4+
# This allows LD_LIBRARY_PATH to still work when needed.
5+
rpath = -Wl,-rpath,'$(rpathdir)',--enable-new-dtags
46
allow_nonpic_in_shlib = yes
57
DLSUFFIX = .so
68

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy