ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] Calling Native toolchain as well as target toolchain inmakefi


From: Stuart Hughes
Subject: Re: [Ltib] Calling Native toolchain as well as target toolchain inmakefile.
Date: Tue, 04 Sep 2007 08:36:50 +0100

Hi Mark,

Using $BUILDCC is the right way to call up the host based compiler.
However you'll need to look at the Makefiles for libgpg-error to see if
it is cross compiler aware (e.g. has some provision for building some
parts with one compiler and some another).  If it has, then use whatever
it requires, often this is CC_FOR_BUILD="$BUILDCC" (note the quote but
sometimes it's HOSTCC="$BUILDCC", it depends on the package.  If the
package is not cross compiler aware then you'll need to make a patch so
that it is.

One thing, normally Makefile.am should not need to be worried about as
this only gets processed when you run 'automake' ? 

Have you got a spec file you can send me for this package?  If you can't
get it working easily let me know, maybe I can take a look.

Regards, Stuart


On Mon, 2007-09-03 at 18:32 +0200, Marc Titinger wrote:
> Hello,
> 
> I'm trying to add the libgpg-error package to an iMX31 ltib distro
> (based on the last Freescale ADS iso), and I need to call the host
> (i586) gcc instead of the spoofed cross compiler at some point in the
> Makefile.am.
> 
> I've read some tips from thread so I tried :
> 
> - setting CC_FOR_BUILD=$BUILDCC in the spec file : didn't work, the
> binary was still compiled for the target instead of being intel code.
> 
> - localy unspoofing the path : did'nt work either, so I'm missing
> something, please help !
> 
> 
> #--------export PATH=$(UNSPOOF_PATH)-----------
> export
> PATH=/home/mtr/ltib-imx31ads-20070511/bin:/opt/freescale/ltib/usr/bin:/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-6/arm-none-linux-gnueabi/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin
> 
> cc -I. -I. -o mkerrcodes ./mkerrcodes.c <--- still generates ARM
> binary.
> 
> #--------export PATH=$(SPOOF_PATH)----
> export
> PATH=/opt/freescale/ltib/usr/spoof:/home/mtr/ltib-imx31ads-20070511/bin:/opt/freescale/ltib/usr/bin:/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-6/arm-none-linux-gnueabi/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin
> 
> 
> _______________________________________________
> LTIB home page: http://bitshrine.org
> 
> Ltib mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/ltib





reply via email to

[Prev in Thread] Current Thread [Next in Thread]