#4641: ICA: gcc compilers (c++, gcc, cc1, cc1plus, ...) differ between first and
second build
--------------------+-----------------------
Reporter: bdubbs | Owner: lfs-book
Type: task | Status: new
Priority: normal | Milestone: 9.2
Component: Book | Version: SVN
Severity: normal | Resolution:
Keywords: |
--------------------+-----------------------
Comment (by pierre.labastie):
I have saved the "build" directory for each ICA build of gcc. With the
-idirafter switch, there are no differences in the .o or .a files. So it
is rather clean? and I think we should make the change in the book (*).
But still there are differences in gcov...
Looking at the link command for gcov, it is found that it links with in-
tree .a or .o files, but uses the -static-libgcc and -static-libstdc++
flags. So I suspect it links against the libstdc++.a and libgcc.a from
/tools on first iteration, while it links afainst the ones in /usr on 2nd
and 3rd.
Let's try a diff of those libraries.
(*) Bruce also thinks that it is educational to have -idirafter (private
communication)
--
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/4641#comment:9>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
--
http://lists.linuxfromscratch.org/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page