Pierre Labastie wrote:
Le 06/10/2014 01:12, Christer Solskogen a écrit :
On 05.10.2014 10:06, Cifer Lee wrote:

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?


You don't really need to pass --with-newlib in the first place.

Well,

I read in gcc./configure (version 4.9.1):
---------------
# If this is using newlib, without having the headers available now,
# then define inhibit_libc in LIBGCC2_CFLAGS.
# This prevents libgcc2 from containing any code which requires libc
# support.
: ${inhibit_libc=false}
if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
        test x$with_newlib = xyes ; } &&
      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
        inhibit_libc=true
fi
-------------
Since we do not want libgcc2 to containing any code which requires libc
support, we pass --with-newlib --without-headers (equivalent to
--with-headers=no). And this is needed!

Exactly. In addition, this is only in effect from the end of Section 5.5 to 5.10 (gcc-pass2). Even if it was not needed, then it would be a negligible impact.

However, it is needed to isolate gcc from the host system.

  -- Bruce

--
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

Reply via email to