LD_SEARCH_FLAGS incorrect for NetBSD
The value of LD_SEARCH_FLAGS in include/Make/Platform.make for NetBSD is incorrect. Rather than just -rpath it should be -Wl,-rpath.
The necessary patches against the 6.4.2 release are attached; these have been compile tested. Since they only affect NetBSD systems, there should be no risk applying them and pulling them up to more recent versions.