It seems to me that the Makefile is linking build artifacts instead of copying them... Also the install hook is assuming those .so files exist which seems to be the case but should not be copied over when --enable-static --disable-shared is specified. It happens only for that plugin.