Eray Aslan:
> 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.
>
> Any chance of using ${CC} for the linking stage as well? Perhaps
> something along the lines of:
>
> --- makedefs 2014-07-15 04:40:08.349864932 +0000
> +++ makedefs 2014-07-15 06:21:09.252817290 +0000
> @@ -200,18 +200,18 @@
> FreeBSD.8*) SYSTYPE=FREEBSD8
> : ${SHLIB_SUFFIX=.so}
> : ${SHLIB_CFLAGS=-fPIC}
> - : ${SHLIB_LD='gcc -shared -Wl,-soname,${LIB}'}
> + : ${SHLIB_LD="${CC-gcc} -shared -Wl,-soname,\${LIB}"}
> : ${SHLIB_RPATH='-Wl,-rpath,${SHLIB_DIR}'}
> : ${SHLIB_ENV="LD_LIBRARY_PATH=`pwd`/lib"}
> - : ${PLUGIN_LD='gcc -shared'}
> + : ${PLUGIN_LD="${CC-gcc} -shared"}
etc. I tried s/'gcc -shared/'${CC-gcc} -shared/ on FreeBSD9 and
got build errors. Unfortunately, there is no time to fix errors
right before the postfix-2.12-20140715 release.
Wietse