[PATCH] detecting the output file format

Rafael Ávila de Espíndola rafael.espindola@gmail.com
Thu Dec 16 18:00:00 GMT 2004


I had a problem building a gcc with multilib support on a ppc64
(http://lists.debian.org/debian-powerpc/2004/12/msg00393.html). In that 
thread, and with some help from Alexandre Oliva and Janis Johnson, I figured 
out that the problem was that gcc/config/rs6000/t-linux64 and 
gcc/libjava/configure.host whore using the output of "gcc 
-print-multi-os-directory" to discover if the output file would be 32 or 64 
bits. I was installing the 64 bits library in /lib and the 32bits one 
in /lib32 so the test result was wrong.

Alexandre Oliva suggested compiling a .c file and running 'file' on the 
output. The attached patch implements his idea.

Rafael Ávila de Espíndola
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc.patch
Type: text/x-diff
Size: 1546 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20041216/6dfc384c/attachment.bin>


More information about the Gcc-patches mailing list