On Thu, Feb 06, 2020 at 06:22:56AM -0500, Jeffrey Walton wrote: > As long as NetBSD supplies an error when RUNPATH is not supported, I > should be OK.
No, it won't error on that test. cc -Wl,--enable-new-dtags works, but the runtime linker ignores DT_RUNPATH. There was a lengthy discussion about this, and a prominent position was that --enable-new-dtags never should be used on NetBSD. However, as you just discoverred, this makes live harder for third party packaging. All newer NetBSD versions just treat DT_RUNPATH the same as DT_RPATH (as it always had the correct semantics on NetBSD). Martin
