Hello,
I'm trying to build my own GNU/Linux system.
Until now I just did the following:
- created a directory called "tools"
- manually compiled glibc, binutils and gcc and installed them into the
"tools" directory (the only options passed to the various configure
scripts were --prefix, --build, --host and in some cases --target)
The problem is that all the binaries/libraries installed in "tools" are
linked against the libraries in the host system. All I want to do now is
to break this link and make the system contained in "tools"
self-sufficient. In other words, I'd like to recompile binutils and gcc
so that they link to the libraries installed in "tools" itself.
Is there a way to do that? Is there a way to tell gcc where to look for
libraries?
Thanks.