This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: crossgcc for mips-redhat-linux-gnu


Toralf;

On Thu, Mar 18, 2004 at 01:51:19PM +0100, Toralf Lund wrote:
> 
> rpmbuild --rebuild --target=mips-linux-gnu --define "_host 
> mips-linux-gnu" -define "_build i686-pc-linux-gnu" ./x.src.rpm
> 
> - Toralf
> 

This now sets up the proper target, host and build variables on the
configure line. Thanks, I should have known to do this, but at the same
time defining the --target variable should set these up as you
described, IMHO.

There remains one problem. 
I would like to avoid touching the .spec files if possible.
Currently I still have to set the following variable inside the .spec:

CFLAGS=-I/opt/crosstool/mips-redhat-linux-gnu/gcc-3.2.3-glibc-2.2.3/mips-redhat-linux-gnu/include

It would be a saving grace if I could either set this last variable from
the command line, or somehow get the environment to pick it up.

Ideas?

Thanks,

   -=chris

-- 
Software Developer                                 QWorks www.qworks.ca
cjones@qworks.ca                                   50 - 1055 W 14th St
604-987-8866 x300                                  North Vancouver, BC V7P 3P2 


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]