/usr/lib/ is default library path and thus it shouldn't be in RPATH and RUNPATH. -L/-R with /usr/lib are not necessary for OpenIndiana. The linker knows better. This patch should be sent upstream. --- pcre2-10.47/pcre2-config.in.orig +++ pcre2-10.47/pcre2-config.in @@ -29,9 +29,6 @@ libR= case `uname -s` in - *SunOS*) - libR=" -R@libdir@" - ;; *BSD*) libR=" -Wl,-R@libdir@" ;;