#3200: New programs installed with GCC
--------------------------------+-------------------------------------------
Reporter: chris@… | Owner: lfs-book@…
Type: task | Status: new
Priority: normal | Milestone: 7.3
Component: Book | Version: SVN
Severity: normal | Keywords:
--------------------------------+-------------------------------------------
Comment(by bdubbs@…):
It looks like binutils does need to be built with --enable-plugins in
Chapter 6. When I did that, gcc-ar --help gave me the same output as ar
--help. It's possible that binutils have overcome the need to the
gcc-{ar,nm,ranlib} wrappers.
Looking at the source for gcc-ar, it just executes ar with the argument '
--plugin plugin-name'.
There is an option --enable-lto (link time optimization) in both binutils
and gcc that we may want to add.
In gcc, with the --enable-lto option, there are two files installed:
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/{lto-wrapper,lto1}
I did find http://crpppc19.epfl.ch/cgi-bin/man/man2html?gcc-ar-4.7+1
For reference, ar creates an archive (.a) file. nm extracts symbols from
object files (executables, .o files, .so.1 files, etc). ranlib creates an
index in a .a file for linking efficiency.
--
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/3200#comment:1>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page