build: link with the libtool archive
When linking an internal dependency it is better to use the libtool archive (.la) file which allows it to always link correctly with both GNU libtool and slibtool.
Gentoo-Issue: https://bugs.gentoo.org/956827
Edited by orbea