On Tue, Jul 15, 2014 at 06:36:44AM +0000, Eray Aslan wrote:

> On Tue, Jul 15, 2014 at 02:31:59AM +0000, Viktor Dukhovni wrote:
> > Actually, AUXLIBS should come before SYSLIBS, so the correct patch is:
> > 
> > diff --git a/makedefs b/makedefs
> 
> Thanks.  Works for me.

Glad to hear.  The missing AUXLIBS is a simple oversight, so I
imagine this will be in the next snapshot.  The RPATH additions
are less obviously needed, since all Postfix programs link to the
full set of libraries (libglobal, libutil, ...) they need.  So perhaps
just the makedefs patch is enough.

> Any chance of using ${CC} for the linking stage as well?  Perhaps
> something along the lines of:
> 
> -             : ${SHLIB_LD='gcc -shared -Wl,-soname,${LIB}'}
> +             : ${SHLIB_LD="${CC-gcc} -shared -Wl,-soname,\${LIB}"}

We need a compiler that is known to support the requisite options,
so this is not clear.  Since we're only using gcc for linking, if
it is present, it is a reasonable choice.  The reason to use ${CC}
is if per-chance gss is not even installed.  I am not sure what the
right answer is.

--
        Viktor.

Reply via email to