I found an way to re-build arm-linux toolchain from within the OM tree with the appropriate sysroot changes:<br>
<blockquote>
    <b><tt><font size="2">~/moko$ </font></tt></b><tt><font size="2">make clean-package-gcc-cross-4.1.1</font></tt><br>
    <b><tt><font size="2">~/moko$ </font></tt></b><tt><font size="2">vi openembedded/packages/gcc/gcc-cross_4.1.1.bb:</font></tt><br>
    <i>[modify the </i><i><tt><font size="2">EXTRA_OECONF </font></tt></i><i>to this:]</i><br>
    <tt><font size="2">EXTRA_OECONF += &quot;--with-mpfr=${STAGING_DIR}/${BUILD_SYS} <span style="font-weight: bold;">--with-sysroot=/usr/local/arm/${PV}</span>&quot;</font></tt><br>
    <b><tt><font size="2">~/moko$ </font></tt></b><tt><font size="2">sudo make build-package-gcc-cross-4.1.1</font></tt><br>
</blockquote>
this builds and creates arm-linux tools with sysroot set correctly; however the make install does not install all of the bins, libs, objects, and includes to the /usr/local/arm/4.1.1 dir.&nbsp; So I tried this next:<br>
<blockquote>
    <tt><font size="2">EXTRA_OECONF += &quot;--with-mpfr=${STAGING_DIR}/${BUILD_SYS} --with-sysroot=/usr/local/arm/${PV} <span style="font-weight: bold;">--prefix=/usr/local/arm/${PV}</span>&quot;</font></tt><br>
</blockquote>
This results in various errors popping up which I slogged thru until I got to this one in the libstdc++ part of the gcc build:<br>
<blockquote>
    <tt><font size="2">| checking for ld that supports -Wl,-z,relro... yes</font></tt><br>
    <tt><font size="2">| checking for main in -lm... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.</font></tt><br>
    <tt><font size="2">| make[2]: *** [configure-target-libstdc++-v3] Error 1</font></tt><br>
    <tt><font size="2">| make[2]: Leaving directory `/home/ohardison/moko/build/tmp/work/armv4t-linux/gcc-cross-4.1.1-r12/gcc-4.1.1/build.i686-linux.arm-linux&#39;</font></tt><br>
</blockquote>
I have no idea how to get beyond this one.&nbsp; Is there a way to specify install dir without using --prefix perhaps?&nbsp; In looking through the glibc_2.5.bb for any clues I noticed there are variables to control staging the libc files including CROSS_DIR.&nbsp; Where does the setting for this come from?
<br><br>I realize from the profound empty noise I got back from my first email that I might be in uncharted waters here, but I appreciate any help.<br>
<br>
<br>
Osborne <br><a href="mailto:hardisun@gmail.com">hardisun@gmail.com</a><br><br>