Ad ----- Messaggio originale ----- Da: "Cifer Lee" <[email protected]> Inviato: 05/10/2014 12:19 A: "LFS Support List" <[email protected]> Oggetto: Re: [lfs-support] Where to find the newlib source when compiling GCCpass 1?
2014-10-05 17:29 GMT+08:00 Chris Staub <[email protected]>: > On 10/05/14 04:06, Cifer Lee wrote: >> >> When I reading the LFS Book 7.5, section 5.5: >> http://lfs.ohmcoe.com/lfs/view/7.5/chapter05/gcc-pass1.html >> >> I noticed that when compiling gcc, we passed the --with-newlib option, >> I know newlib is a lightweight C library, but where is the newlib's >> source code? >> >> I have downloaded the newlib's source manually from: >> ftp://sourceware.org/pub/newlib/index.html >> >> combining with this link I have searched in mailing list: >> >> http://www.linuxfromscratch.org/pipermail/lfs-dev/2012-February/065834.html >> >> I am sure that the newlib's source was not integrated into GCC's source. >> >> >> I have also checked the GCC's official installation guide: >> https://gcc.gnu.org/install/configure.html, but it also doesn't point >> where the newlib is. >> >> I spent about two hours on this question but still get no answer, when >> passing --with-newlib option to GCC, how it find newlib on earth? >> > Did you read the description of the option given in the LFS book? The > --with-newlib option doesn't make GCC look for newlib, it just sets a > variable that causes GCC not to require libc support. I suppose the option > is called "newlib" because that would be needed if you were indeed using > newlib, but that option itself doesn't actually say to look for newlib. > -- > http://lists.linuxfromscratch.org/listinfo/lfs-support > FAQ: http://www.linuxfromscratch.org/blfs/faq.html > Unsubscribe: See the above information page > > Do not top post on this list. > > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > A: Top-posting. > Q: What is the most annoying thing in e-mail? > > http://en.wikipedia.org/wiki/Posting_style Thanks very much! Yes, I have read the description, the description says: "Since a working C library is not yet available, this ensures that the inhibit_libc constant is defined when building libgcc. This prevents the compiling of any code that requires libc support." But I can't realize the meaning you said from this sentence... and from the GCC's official manual, https://gcc.gnu.org/install/configure.html, it says: "--with-newlib Specifies that ‘newlib’ is being used as the target C library." from this, I can't realize the meaning you said too... -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
-- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
