Re: Proposed patch: (underlinking? ld.gold)

2014-07-15 Thread Wietse Venema
Eray Aslan: > On Tue, Jul 15, 2014 at 02:31:59AM +, 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 > so

Re: Proposed patch: (underlinking? ld.gold)

2014-07-15 Thread Wietse Venema
Viktor Dukhovni: > On Tue, Jul 15, 2014 at 06:46:01AM -0400, Wietse Venema wrote: > > > > I also took > > > > the liberty of adding the RPATH to the shared library and plugin > > > > build command-lines. > > > > What problem does this solve? > > Perhaps none. Technically most of the libraries

Re: Proposed patch: (underlinking? ld.gold)

2014-07-15 Thread Viktor Dukhovni
On Tue, Jul 15, 2014 at 10:07:30AM +, Eray Aslan wrote: > On Tue, Jul 15, 2014 at 07:15:38AM +, Viktor Dukhovni wrote: > > 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 rea

Re: Proposed patch: (underlinking? ld.gold)

2014-07-15 Thread Viktor Dukhovni
On Tue, Jul 15, 2014 at 06:46:01AM -0400, Wietse Venema wrote: > > I also took > > > the liberty of adding the RPATH to the shared library and plugin > > > build command-lines. > > What problem does this solve? Perhaps none. Technically most of the libraries and all the plugins depend on libut

Re: Proposed patch: (underlinking? ld.gold)

2014-07-15 Thread Wietse Venema
Viktor Dukhovni: > On Tue, Jul 15, 2014 at 01:29:22AM +, Viktor Dukhovni wrote: > > > Right, you're building with dynamicmaps=no, but SHLIB_SYSLIBS > > variable was not set quite right, see patch below. Fine. > I also took > > the liberty of adding the RPATH to the shared library and plugin

Re: Proposed patch: (underlinking? ld.gold)

2014-07-15 Thread Eray Aslan
On Tue, Jul 15, 2014 at 07:15:38AM +, Viktor Dukhovni wrote: > 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 no

Re: Proposed patch: (underlinking? ld.gold)

2014-07-15 Thread Viktor Dukhovni
On Tue, Jul 15, 2014 at 06:36:44AM +, Eray Aslan wrote: > On Tue, Jul 15, 2014 at 02:31:59AM +, 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 missin

Re: Proposed patch: (underlinking? ld.gold)

2014-07-14 Thread Eray Aslan
On Tue, Jul 15, 2014 at 02:31:59AM +, 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: -

Re: Proposed patch: (underlinking? ld.gold)

2014-07-14 Thread Viktor Dukhovni
On Tue, Jul 15, 2014 at 01:29:22AM +, Viktor Dukhovni wrote: > Right, you're building with dynamicmaps=no, but SHLIB_SYSLIBS > variable was not set quite right, see patch below. I also took > the liberty of adding the RPATH to the shared library and plugin > build command-lines. Actually, AU

Proposed patch: (underlinking? ld.gold)

2014-07-14 Thread Viktor Dukhovni
On Mon, Jul 14, 2014 at 07:16:30PM +, Eray Aslan wrote: > $ ./bin/postconf mail_version > ./bin/postconf: error while loading shared libraries: > libpostfix-global.so: cannot open shared object file: No such file or > directory This is expected. You need to run: LD_LIBRARY_PATH=$(pwd)/l