This looks wrong: `-all-static` doesn't generate shared libs:

> If output-file is a library, then only create a static library.
> from http://www.gnu.org/software/libtool/manual/html_node/Link-mode.html#Link-mode