*** Warning: This system can not link to static lib archive ../../common/libcommon_util.la.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** But as you try to build a module library, libtool will still create
*** a static module, that should work as long as the dlopening application
*** is linked with the -dlopen flag to resolve symbols at runtime.
ar cru .libs/ldapplugin.a ldapplugin_la-LDAPUserPlugin.o ldapplugin_la-ldappasswords.o
I libcommon_util.la is created as a static library. A few suggestions from OpenBSD porters have been to add -fPIC to flags. I've added this to the LDFLAGS, CPPFLAGS, CXXFLAGS & CFLAGS for libcommon_util.la with no success.