Mysql-5.7 built with pkgsrc gcc the installed on another machine fails to run due to missing libatomic.so
ldd `which mysql`|ag latomic
-latomic.3 => not found
Installing gcc6-libs-6.5.0nb3 fixes it
ldd `which mysql`|ag latomic
-latomic.3 => /usr/pkg/gcc6/x86_64--netbsd/lib/./libatomic.so.3