<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.26.0">
</HEAD>
<BODY>
On Wed, 2009-12-09 at 16:02 +0600, Mikhail Gusarov wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Twas brillig at 21:36:41 08.12.2009 UTC-05 when
<A HREF="mailto:gaetan.nadon@videotron.ca">gaetan.nadon@videotron.ca</A> 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.
</PRE>
</BLOCKQUOTE>
<BR>
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?
<BLOCKQUOTE TYPE=CITE>
<PRE>
_______________________________________________
xorg-devel mailing list
<A HREF="mailto:xorg-devel@lists.x.org">xorg-devel@lists.x.org</A>
<A HREF="http://lists.x.org/mailman/listinfo/xorg-devel">http://lists.x.org/mailman/listinfo/xorg-devel</A>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>