further info is here http://www.nslu2-linux.org/wiki/SlugOS/NativeBuildForopenslug
Compiling natively is quite possible provided you have plenty of time, swap and diskspace. Below are some instructions to get you going. These should work on SlugOS 3.10 (and probably higher)
During the bb process you may get notifications like:
compiling programs with gcc.
And more notes
Running wget http://www.nslu2-linux.org/Makefile && make setup fails cant find monotone so i linked monotone to mtn And I end up with this error
monotone: error: failure extracting schema from sqlite_master
This is due to the master makefile now requiring montone 0.28 for which there is no package and so far I have been unable to compile it natively. I found a forum (sorry, can't remember where) which acknowledges this and stated that fixing it "wasn't a high priority". So basically, don't bother with native compliation as it's fatally bust and those cross compilers that broke it couldn't be bothered to update this page. If only I'd discovered that BEFORE I totally rebuilt my slug...
Fix for ldconfig: not found
If you log in as a regular user, then su to root, the PATH does not include /sbin, which is why ldconfig could not be found. Log in as root, and PATH will include /sbin, and ldconfig will be found.
Fix with ar
The following steps were also required to replace the busybox ar utility with a one enabling building your own libraries:
# cd /usr/bin # rm ar # ln -s arm-linux-ar ar
With this fix for me is possible to compile.