https://bugs.openldap.org/show_bug.cgi?id=9296
--- Comment #2 from Howard Chu hyc@openldap.org --- (In reply to noloader@gmail.com from comment #1)
You are not supposed to build anything during 'make install'.
True. Unfortunately, this is libtool doing its thing. We've fixed this multiple times in the past by hacking up our own copy of libtool to prevent it, but then we're forced to update to the latest vanilla libtool and go through it all again.
You really need to report this as a bug to the libtool maintainers.