Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+3-1
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)