Review the needed libraries to link...
f.e. arpaname links to libisc (and friends) and there's really no reason to (it just uses inet_pton
and fprintf
). There might be more.
It's probably easy (with right tools) to review the symbols actually needed in the binary and remove the unnecessary linking.