Tushar Teredesai wrote:

> Additionally, the libgcc_s.so symlink is not needed. Only the
> libgcc_s.so.1 is needed so that glibc can dlopen that library (used in
> nptl).

Are you sure? The libgcc_s.so symlink became necessary when LFS adopted
the startfile_prefix_spec hackery in the toolchain readjustment to
overcome the "link against wrong libc" issue that I discovered way back
when. Recall some lively flam^H^H^H^H discussions on lfs-hackers from
Sept. 2004. Here is a relevant post:

http://linuxfromscratch.org/pipermail/lfs-hackers/2004-September/002154.html

Hmmm, looking at things currently, I see that the Stable book still does
the startfile_prefix_spec tweaking but the Unstable book does not! It was
lost when the GCC-4 branch was merged to the trunk. I haven't verified it
but ISTM that LFS Unstable has therefore regressed to linking Ch 6
Binutils and GCC against the (wrong) Glibc in /tools! Luckily, there is
enough redundancy within the build method to make this fairly harmless..
but it still doesn't escape that fact that it's just plain wrong. It
*WILL* bite in some scenarios eg: ICA will show up differences if you
happen to build different Glibc's in Ch 5 and Ch 6 (like I do in DIY -
non-optimized in temptools phase versus optimized in chroot phase).

You can verify the problem by running this test just AFTER the
readjustment of the toolchain and BEFORE the install of binutils and gcc
when INSIDE THE CHROOT:

  echo 'main(){}' > dummy.c
  gcc dummy.c -Wl,--verbose 2>&1 | grep succeeded

If you see references to /tools then you are linking against the wrong
libc! Someone urgently needs to check the Unstable book for this right now.

More detailed info here:

http://www.diy-linux.org/pipermail/diy-linux-dev/2004-August/000111.html
http://www.diy-linux.org/pipermail/diy-linux-dev/2004-September/000122.html

Apologies if I've overlooked something and wasted your time.. but
the test takes only seconds to run so someone really should perform the
test to determine the current status.

Regards
Greg
-- 
http://www.diy-linux.org/

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to