https://sourceware.org/bugzilla/show_bug.cgi?id=26178
Bug ID: 26178 Summary: Can ld add -rpath-relative Product: binutils Version: unspecified Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: jolivier23 at gmail dot com Target Milestone: --- I've found it's nearly impossible to set $ORIGIN in certain scenarios due to the variable getting interpreted as either a Makefile variable or environment variable to configure or many other build tools/scenarios. Could an option be added to ld to set a relative path and let ld write the $ORIGIN string? e.g. ld -rpath-rel='../lib' would set rpath or runpath to $ORIGIN/../lib This would make setting origin based rpaths much simpler from build scripts In our own scripts, I've resorted to patchelf for post build settings to avoid $ORIGIN purgatory -- You are receiving this mail because: You are on the CC list for the bug.