On Wed, 2009-12-09 at 16:02 +0600, Mikhail Gusarov wrote:

> Twas brillig at 21:36:41 08.12.2009 UTC-05 when
> [email protected] did gyre and gimble:
> 
>  GN> libX11 fails to cross-compile unless --enable-malloc0returnsnull is
>  GN> given during configuration, since configure can't run test programs
>  GN> in this situation.
> 
> Why not give it?
> 
>  GN> This is a sensible conservative default that should be used by
>  GN> default when cross-compiling rather than requiring it to be forced
>  GN> explicitly.
> 
> I'd prefer configure to explicitly fail instead of silently making
> choices behind my back.


I looked at the code using MALLOC_0_RETURNS_NULL and malloc(0) is
replaced with malloc(1) to avoid a NULL being returned. A production or
benchmark build should still pass the correct value for an optimum
build. Would that information influence your preference?

> _______________________________________________
> xorg-devel mailing list
> [email protected]
> http://lists.x.org/mailman/listinfo/xorg-devel
_______________________________________________
xorg-devel mailing list
[email protected]
http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to