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