LFS Toolchain
Jeremy Huntwork
jhuntwork at linuxfromscratch.org
Mon Jan 19 22:57:58 MST 2009
Greg Schafer wrote:
>> Also, haven't you noticed that making use of sysroot in pass one
>> eliminates the scenario that is causing you trouble in pass 2, thereby
>> removing the need for the patch?
>
> Huh? Not at all. Please, JH, explain how this is so.
I'm not a gcc internals expert, so I'm not going to try to begin to
explain all the intricacies on my own. I readily admit that - and I am
learning a lot as I work through this. What I have published in my home
directory is not a line for line copy of Ryan's proposed method. I did
aim to learn the principles of what he was achieving and apply it to
current trunk in an unobtrusive manner.
What I do know is that the combination of sysroot and macro edits leaves
us with a compiler in pass1 that is set to link against libc in
/tools/lib and requires no adjustment or command line modifications to
do so. Removing the sysroot bits leaves us still dependent on -B and a
toolchain adjustment. This first build of gcc is able to build the
second pass without requiring the startfiles patch. In order to explain
why this is so, I admit, I would have to dig deeper.
> And like I said earlier, the patch is already gone in my dev build - no
> sysroot in sight.
I wasn't aware that you removed it. I'll be taking a look...
--
JH
More information about the lfs-dev
mailing list