Previously we supported building statically-linked executables using libtool. However, this was dropped in 91262e75 in favor of using ar/ranlib directly. Consequently we can drop this logic. Fixes #18826.