[patch 01/01] crosscompiling liblbxutil

Marc Kleine-Budde mkl at pengutronix.de
Thu Jan 19 04:26:15 PST 2006


Hello!

liblbxutils fails when trying to crosscompile. The problem is that 
"mkg3states" is executed to generate a header file. But this program is 
compiled to run on "host" not on "build".

/bin/sh ../libtool --mode=link arm-softfloat-linux-gnu-gcc  -O 
-L/home/frogger/projects/pengutronix/ptxdist/ptxdist-0.9-trunk/local/arm-softfloat-linux-gnu/lib 
-L/home/frogger/projects/pengutronix/ptxdist/ptxdist-0.9-trunk/local/arm-softfloat-linux-gnu/usr/lib 
-o mkg3states  mkg3states.o
arm-softfloat-linux-gnu-gcc -O -o mkg3states mkg3states.o 
-L/home/frogger/projects/pengutronix/ptxdist/ptxdist-0.9-trunk/local/arm-softfloat-linux-gnu/lib 
-L/home/frogger/projects/pengutronix/ptxdist/ptxdist-0.9-trunk/local/arm-softfloat-linux-gnu/usr/lib
rm -f g3states.h
./mkg3states -c > g3states.h_ && mv g3states.h_ g3states.h
/bin/sh: ./mkg3states: cannot execute binary file

The attached patch against CVS fixes this problem.

Marc

-- 
  Dipl.-Ing. Marc Kleine-Budde | http://www.pengutronix.de
   Pengutronix - Linux Solutions for Science and Industry
     Handelsregister: Amtsgericht Hildesheim, HRA 2686
       Hannoversche Str. 2, 31134 Hildesheim, Germany
     Phone: +49-5121-206917-0 |  Fax: +49-5121-206917-9
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mkl-20060119_132218-mkg3states-crosscompile.diff
URL: <http://lists.x.org/archives/xorg/attachments/20060119/f59edd43/attachment.ksh>


More information about the xorg mailing list