On Thu, Jul 23, 2015 at 09:07:20AM +0200, Vincent Bernat wrote:
>  ??? 23 juillet 2015 08:41 +0200, Willy Tarreau <w...@1wt.eu> :
> 
> >> > I suppose that either -ldl could be added to OPTIONS_LDFLAGS append,
> >> > like this is done for -lm. Or USE_DL section could be moved towards the
> >> > end. I think the first solution is better since libdl seems to be a
> >> > dependency of lua.
> >> >
> >> > Note that this is not an Ubuntu-specific but they enforce --as-needed by
> >> > default directly in the linker.
> >> 
> >> Here is a proposition. An alternative would be to move the ifneq
> >> ($(USE_DL),) section at the end of the Makefile.
> >
> > Thierry just forwarded me this e-mail off-list. I've quickly read the
> > thread. Should I merge it in the end ?
> 
> It fixes the problem, but it's only a proposal. I think that's the
> current best option, so unless you don't like it, merge it. :)

OK done then. I thought about doing the same one when Thierry introduced
Lua which didn't build on my system but I changed my mind to set it
inconditionally. In the end the USE_* options are still the easy way to
deal system differences with in build scripts in a quick and reproducible
way.

Thanks,
Willy


Reply via email to