I started with a completely empty $DESTDIR and $OBJDIR. Did a
'build.sh release' and got the same error, but on some different
utility!
# link amrctl/amrctl
/build/netbsd-local/tools/x86_64/amd64/bin/x86_64--netbsd-gcc -B/
build/netbsd-local/dest/amd64/usr/lib/ -B/build/netbsd-local/dest/
amd64/usr/lib/ -Wl,-nostdlib -Wl,--fatal-warnings -o amrctl
amrctl.o -L/build/netbsd-local/dest/amd64/usr/lib -Wl,-
dynamic-linker=/libexec/ld.elf_so -Wl,-rpath-link,/build/netbsd-
local/dest/amd64/lib -R/lib -L/build/netbsd-local/dest/amd64/lib -
Wl,-rpath-link,/build/netbsd-local/dest/amd64/usr/lib -L/build/
netbsd-local/dest/amd64/usr/lib
/build/netbsd-local/dest/amd64/usr/lib/libc.so: undefined reference
to `____semctl50'
collect2: ld returned 1 exit status
*** [amrctl] Error code 1
1 error
nbmake: stopped in /build/netbsd-local/src/sbin/amrctl
*** [dependall] Error code 2