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: Building crossgcc rpms (as non-root)


On Thu, 25 Mar 2004, Toralf Lund wrote:

> Hmmm. I'm using newlib rather than glibc, but here's what I'm doing [ 
> see attached spec file ]. This is essentially the crosstool script that 
> should be familiar to anyone on this list, reformatted into an rpm spec. 
> Use --target to specify the platform. I'm mainly using --target 
> m68k-coff and --target arm-coff.

Thanks for taking the time to follow up.

I'm curious about this bit of %build:

...
mkdir build-binutils; cd build-binutils
../%{_binutils}/configure --target=%{cross_target} --prefix=%{_prefix} \
  2>&1 | tee configure.log
make all install 2>&1 | tee make.log
make prefix=%{buildroot}%{_prefix} install 2>&1 | tee -a make.log
...

Won't the "make all install" try to write into %{_prefix}? The "install" 
is a mistake, no?

I'm also curious about:

export PATH=${PATH}:%{buildroot}%{_prefix}/bin

Shouldn't that be:

export PATH=%{buildroot}%{_prefix}/bin:${PATH}

--
Charlie

A: Because we read from top to bottom, left to right.
Q: Why should i start my reply below the quoted text?


------
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]