regarding toolchain relocatability:
On Tue, 27 Jul 2010, naturalwatt wrote:
... snip ...
> I think the paths used by gcc for include directories and library
> search paths are hardcoded into gcc.
>
> For example:
>
> gcc -v:
>
> Reading specs
> from/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/lib/gcc-lib/arm-unknown-linux-gnu/3.3.
> 4/specs
> Configured
> with:/Users/martin/linux/crosstool-0.42/build/arm-unknown-linux-gnu/gcc-3.3.4-glibc-2.3.2/gcc-3.3.4/co
> nfigure --target=arm-unknown-linux-gnu --host=powerpc-host_apple-darwin9.0.0
> --prefix=/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu--with-headers=/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/arm-unknown-linux-gnu/i
> nclude--with-local-prefix=/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/arm-unknown-linux-
> gnu --disable-nls --enable-threads=posix --enable-symvers=gnu
> --enable-__cxa_atexit
> --enable-languages=c,c++ --enable-shared --enable-c99 --enable-long-long
> Thread model: posix
> gcc version 3.3.4
>
> So that's what you'll break if you relocate things.
>
> Martin
i'm not convinced, for the simple reason that i could cross-compile
a trivial "hi, world" program with the toolchain installed elsewhere
as long as i had the search path set properly. if what you say is
true, wouldn't that have been impossible?
rday
--
========================================================================
Robert P. J. Day Waterloo, Ontario, CANADA
Top-notch, inexpensive online Linux/OSS/kernel courses
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|