https://bugs.openldap.org/show_bug.cgi?id=9228
--- Comment #2 from Howard Chu hyc@openldap.org --- (In reply to Ryan Tandy from comment #1)
TBH this looks like a general issue to me, I would think the link order should be
$(LDAP_LIBLDAP_LA) $(LDAP_LIBLUTIL_A) $(LDAP_LIBLBER_LA)
everywhere.
Apparently there were/are reasons why libldap shouldn't depend on liblutil though, judging from multiple commits (mostly Ando) avoiding them. Can anyone enlighten me?
liblutil is only a static library, you can't link it into a shared library like libldap.