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] |
Toralf;Yes. The problem is that the default macro setup (for i686 Linux) has
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.Not really. Unless it's as simple as doing "setenv CFLAGS ..." or "export CFLAGS=..." before executing rpmbuild...
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?
------ 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] |