Apparently, runtime paths cannot be skipped on NetBSD, even for system-wide packages.
On NetBSD 10.0:
- on the master branch @ bb57017b2945d5e0bbd95c7f1a9369a8ab7c6fcd:
$ cmake -B build -DCMAKE_C_COMPILER="/usr/pkg/gcc14/bin/gcc" -DCMAKE_CXX_COMPILER="/usr/pkg/gcc14/bin/g++"
$ cmake --build build
$ ./build/src/bitcoin-wallet -version
./build/src/bitcoin-wallet: Shared object "libsqlite3.so.0" not found
$ cmake --install build --prefix /home/hebasto/INSTALL
$ /home/hebasto/INSTALL/bin/bitcoin-wallet -version
/home/hebasto/INSTALL/bin/bitcoin-wallet: Shared object "libsqlite3.so.0" not found
- with this PR:
$ cmake -B build -DCMAKE_C_COMPILER="/usr/pkg/gcc14/bin/gcc" -DCMAKE_CXX_COMPILER="/usr/pkg/gcc14/bin/g++"
$ cmake --build build
$ ./build/src/bitcoin-wallet -version | head -1
Bitcoin Core bitcoin-wallet utility version v28.99.0-11115e9aa845
$ cmake --install build --prefix /home/hebasto/INSTALL
$ /home/hebasto/INSTALL/bin/bitcoin-wallet -version | head -1
Bitcoin Core bitcoin-wallet utility version v28.99.0-11115e9aa845