[patch] Check for libffi_cv_as_x86_pcrel should not look for just "warning"

Rafael Avila de Espindola respindola@mozilla.com
Fri Feb 4 20:36:00 GMT 2011


The check that sets libffi_cv_as_x86_pcrel currently check for "warning" 
or "illegal". The problem is that when trying to build libffi with LTO 
clang will produce the warning

clang: warning: argument unused during compilation: '-emit-llvm'

The attached patch just uses the $CC error code instead. Is that OK or 
is there some strange assembler out there that rejects the assembly bug 
exists with 0?

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pcrel.patch
Type: text/x-patch
Size: 1237 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libffi-discuss/attachments/20110204/984102a2/attachment.bin>


More information about the Libffi-discuss mailing list