On Wed, Jul 09, 2014 at 12:27:19PM -0400, Wietse Venema wrote:
> Viktor Dukhovni:
> > > - $(SHLIB_LD) -o $(LIB) $(OBJS)
> > > + $(SHLIB_LD) -o $(LIB) $(OBJS) $(SYSLIBS)
> ...
> > Wietse wanted to avoid $(SYSLIBS) when linking the shared libraries,
> > and removed them from SHLIB_LD line, but they are indeed not optional
> > in many cases.
>
> This breaks when $(SYSLIBS) contains a non-shared library (libfoo.a).
>
> Working around that will require extra scripting in makedefs, to
> eliminate non-shared libraries from the $(SHLIB_LD) command lines.
One might simply declare this to be pilot error. It is difficult
to imagine what libraries might be needed to link Postfix executables
that are not in fact dependencies of the Postfix libraries.
Mostly people use libmumble.a for MySQL support or similar, but
these are used via libglobal or libutil, and so not compatible with
a shared build.
I can't think of any external features used directly by Postfix
executables bypassing Postfix libraries. This leaves only SASL
and MILTER support as possible problem areas, since currently we
don't make libxsasl and libmilter shared.
--
Viktor.