NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ORIGIN-based runpaths?



On Sat, Mar 21, 2020 at 06:21:54AM -0400, Jeffrey Walton wrote:
> Hi Everyone,
> 
> I'm reading the ELF FAQ at https://www.netbsd.org/docs/elf.html. I
> prefer to use -Wl,-R,'$ORIGIN/../lib' to help support DESTDIR staging.
> It also makes it easy to find libraries since they are relative to the
> binary.
> 
> Does NetBSD support ORIGIN-based rpaths and runpaths?

New enough NetBSD supports it (at least -9 and current, not sure about -8),
but pkgsrc bans it strictly for final binaries (and for intermediate build
results requires special settings to avoid removing the linker args by
the pkgsrc wrappers).

Martin


Home | Main Index | Thread Index | Old Index