On Tuesday 26 September 2006 12:24, Daniel Glaser wrote: > OK, to better understand this... > Does this mean, if you make your Target-ROOT /usr/CTARGET, the two > locations ($ROOT and /usr/CTARGET) mentioned above goes into the same > place, so that gcc, ld,... can find it?
your cross-compiler uses /usr/CTARGET as the sysroot ... in other words, it's as if /usr/CTARGET were the $ROOT for just the compiler binutils and gcc treat /usr/CTARGET/lib and /usr/CTARGET/usr/lib and /usr/CTARGET/usr/include the same exact way your native compiler treats /lib and /usr/lib and /usr/include so lets look at nano ... it needs ncurses ROOT=/usr/CTARGET emerge -b ncurses ROOT=/home/myboard emerge -K ncurses ROOT=/home/myboard emerge nano the only thing you need to set is CHOST ... no screwing with CFLAGS or LDFLAGS as the toolchain already knows where to look -mike
pgprLYGCBZZVU.pgp
Description: PGP signature
