[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] maint: tests: fix library position in link line for building
Re: [PATCH] maint: tests: fix library position in link line for building shared lib
Thu, 02 Oct 2014 17:01:41 +0100
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)
On 2 Oct 2014, Pádraig Brady stated:
> On 10/02/2014 03:26 PM, Nick Alcock wrote:
>> - $CC -Wall -shared --std=gnu99 -fPIC -ldl -O2 $* "$in" -o "$out"
>> + $CC -Wall -shared --std=gnu99 -fPIC -O2 $* "$in" -o "$out" -ldl
> I couldn't reproduce the failure even with -Wl,--as-needed
> but I agree the above is better so pushed that.
I wish I knew the mystic combination of ld versions, --as-needed and
--[no-]add-needed that required -l to be positioned after a symbol's
users and that which didn't. (Even more, I wish we'd decide whether one
or the other is better and stick with it!)
But in the absence of that, this sort of annoying patch keeps on being