On 12/11/2014 06:34 AM, Bruce Dubbs wrote: > Tim Tassonis wrote: >> Hi List
... >> 3. no static libgcc and libstdc++ from gcc compile >> >> The build instruction for stage 2 in "6.17. GCC-4.9.2" works perfectly, >> but does not build static versions of libgcc and libstdc++. From a >> run-time dependency view on systems with very few c++ programs (an >> LFS-based system. for instance...) and, as I have read, also from a >> general binary software distribution point-of-view for c++ programs, it >> is nice to have the possibility of linking those two libraries >> statically to a binary. It maybe could be mentioned in the book that >> this can be achieved by adding --enable-static='libgcc,libstdc++' to the >> configuration of gcc. Then, both static and dynamic versions of the >> libraries are built and any c++ program might then link them statically >> by specifying LDFLAGS='-static-libgcc -static-libstdc++' at the link >> stage. > > Perhaps we ought to consider this. What do other devs think? > > -- Bruce > Since when do we disable them? I do have these and they are also listed in the contents (although my build script is based on a bit older instructions). libstdc++.a is in /usr/lib and libgcc.a is in /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2. I dont' see any --disable-static switch. -- Note: My last name is not Krejzi. -- http://lists.linuxfromscratch.org/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
