On 10/3/07, Alexander E. Patrakov <[EMAIL PROTECTED]> wrote: > The following bug has been reported via IRC: > > $ make -C ld LIB_PATH=/tools/lib > ... > /tools/bin/ld: unrecognized option '--hash-style=both' > /tools/bin/ld: use the --help option for usage information > collect2: ld returned 1 exit status > make[2]: *** [ld-new] Error 1 > > I.e., the problem is that the host gcc attempts to use the newly-built > ld that doesn't accept the --hash-style=both option (from the default > specs). The problem does not exist in DIY Linux, because the command is > modified there as follows: > > $ make -C ld CC="gcc -B/usr/bin/" LIB_PATH=/tools/lib > > Please fix the LFS book, and add this to the errata page.
But I thought the reason CC is set there was just because ld-new was the first spot this is needed. We pass CC="gcc -B/usr/bin/" to configure, so how is that not what's being used as $(CC) in ld/Makefile? -- Dan -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page