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
needed. :/

Reply via email to