On 10/19/2016 04:44 AM, John Frankish wrote:
Ref:
Linux From Scratch - Version SVN-20161010
Chapter 6. Installing Basic System Software
6.13. Binutils-2.27
The "--with-system-zlib" configure switch is missing - without this switch,
binutils will build against the version of zlib included with the source
package.
Note also, with reference to:
6.17. GCC-6.2.0
install -v -dm755 /usr/lib/bfd-plugins
ln -sfv ../../libexec/gcc/$(gcc -dumpmachine)/6.2.0/liblto_plugin.so \
/usr/lib/bfd-plugins/
..there is no point to use the above unless the "--enable-plugins" configure
switch is used when building binutils, otherwise "gcc -flto" will fail
(unless AR="gcc-ar" is used).
Finally, it's maybe outside the LFS scope, but in order to build ld.gold,
which is used by some BLFS packages, the "--enable-plugins" and
"--enable-gold" binutils configure switches are required, otherwise "gcc
-fuse-ld=gold" will fail.
John, thank you for reporting this. I'm not sure why it got missed, but
am looking at it now. Ran across it today in the logs and found this
message via search. The --with-system-zlib *is* required in chapter 6,
as well as --enable-plugins. I'm doing a test build now to confirm but
expect no issues. I apologize for this not being addressed sooner.
--DJ
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page