stray references macana at
Mon Aug 27 10:46:47 PDT 2007

El Lunes, 27 de Agosto de 2007 14:17, goodoldmarty at escribió:
> SVN-20070820
> When I compiled PCRE, and others, "butterfly-build" appears in the
> compiler output and harmful or not, that is unclean and unacceptable.

On a LFS or CLFS-based system, both current and old versions, there is a lot 
of references to /sources/gcc-build. That is due /usr/lib/ 
and /usr/lib/ contains:

# Libraries that this one depends upon.
dependency_libs=' -L/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src 
-L/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src/.libs -lm -lm -lm 
-L/sources/gcc-build/gcc -lgcc_s -lc -lgcc_s -lm -lgcc_s -lc -lgcc_s'

/usr/lib/ contains also references to /sources/binutils-build

Rebuilding GCC and Binutils don't solve that, the sources build directory is 
always referenced on its .la files. 

Thus, I see three possible solutions:

  - To patch GCC and Binutils to not include references to the build tree and 
to remove all that diplicated  "-lgcc_s -lm"
 - To edit manually that .la files.

 - To not install GCC and Binutils .la files, like most distros do.

Manuel Canales Esparcia
Usuario de LFS nº2886:
LFS en castellano:

More information about the hlfs-dev mailing list