Problem when building from LFS-6.3 Ubuntu Gusty

Dan Nicholson dbn.lists at
Wed Oct 3 06:58:08 PDT 2007

On 10/3/07, Alexander E. Patrakov <patrakov at> 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


More information about the lfs-dev mailing list