@MartinK, it builds static and shared versions of the library. I would suggest to add Code: --disable-static to configure options and try again. Since static lib is built after the shared one, it may got confused and linked tests to the static libs. Does it build on your PC?
--disable-static