On 12/11/2014 09:58 PM, Bruce Dubbs wrote: > Armin K. wrote: >> 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? > >> 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. > > You're right Armin. I checked the book and didn't see any --disable > instructions, but I didn't check the file system! We do indeed have > both those static files. > > -- Bruce >
That's strange, I didn't have them. I installed gcc-4.9.1 from the 7.6 book, maybe some defaults have changed in the meantime? gcc-4.9.1-upstream_fixes-1.patch Anyway, it's not even a proper issue. Kind regards Tim -- http://lists.linuxfromscratch.org/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
