[PATCH] macros: Use conservative default for malloc(0) when cross-compiling #24460

Gaetan Nadon gaetan.nadon at videotron.ca
Tue Dec 8 18:36:41 PST 2009


Hi,

When cross-compiling, configuration stops with an error:


        configure: error: cannot run test program while cross compiling


With the patch applied:


        checking whether malloc(0) returns NULL... yes


Colin wrote in bug 24460:


        add fourth argument to AC_RUN_IFELSE
        
        libX11 fails to cross-compile unless --enable-malloc0returnsnull is given
        during configuration, since configure can't run test programs in this
        situation. This is a sensible conservative default that should be used by
        default when cross-compiling rather than requiring it to be forced explicitly.


Regards,
Gaetan


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.x.org/archives/xorg-devel/attachments/20091208/b77cdb85/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Use-conservative-default-for-malloc-0-when-cross-co.patch
Type: text/x-patch
Size: 0 bytes
Desc: not available
Url : http://lists.x.org/archives/xorg-devel/attachments/20091208/b77cdb85/attachment.bin 


More information about the xorg-devel mailing list