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