From: Peter Korsgaard <jacmet@sunsite.dk>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] gcc: Add option to build final-gcc with sysroot option
Date: Fri, 27 Nov 2009 15:51:02 +0100 [thread overview]
Message-ID: <87ws1c58dl.fsf@macbook.be.48ers.dk> (raw)
In-Reply-To: <1258969104-4217-1-git-send-email-carmelo.amoroso@st.com> (Carmelo AMOROSO's message of "Mon\, 23 Nov 2009 10\:38\:24 +0100")
>>>>> "Carmelo" == Carmelo AMOROSO <carmelo.amoroso@st.com> writes:
Hi,
Thanks for the patch.
Carmelo> Add gcc config option BR2_GCC_FINAL_NEEDS_SYSROOT to build cross gcc
Carmelo> (final stage) with --with-sysroot option.
Carmelo> This is required to allow libgcc to use the correct the correct unwind
Carmelo> functions implementation with NPTL.
Carmelo> Indeed, if sysroot is not used, the inhibit_libc macro is defined
Carmelo> for the LIBGCC2_CFLAGS (see gcc/configure)
Carmelo> inhibit_libc=false
Carmelo> if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
Carmelo> test x$with_newlib = xyes ; } &&
Carmelo> { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
Carmelo> inhibit_libc=true
Carmelo> fi
Carmelo> If inhibit_libc is defined, the actual implementation of unwind functions
Carmelo> are taken from unwind-dw2-fde-c instead of the correct unwind-dw2-fde-glibc.c
Carmelo> as required for NPTL case.
<cut>
Carmelo> +config BR2_GCC_FINAL_NEEDS_SYSROOT
Carmelo> + bool "Gcc (final stage) needs sysroot to be set"
Carmelo> + default n
Carmelo> + help
Carmelo> + If enabled, gcc (final stage) will be configured with --with-sysroot
Carmelo> + set to $(STAGING_DIR) where uClibc runtime system has been installed.
Carmelo> + This is required for building a toolchain working with uClibc NPTL.
Carmelo> +
I'm not convinced we need a user visible option for this - It's a very
lowlevel detail that I don't think most users will know what to answer
to - Any reason we cannot just automatically enable this if
BR2_PTHREADS_NATIVE is enabled?
--
Bye, Peter Korsgaard
next parent reply other threads:[~2009-11-27 14:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1258969104-4217-1-git-send-email-carmelo.amoroso@st.com>
2009-11-27 14:51 ` Peter Korsgaard [this message]
[not found] ` <4B0FEA2F.9080508@st.com>
2009-11-27 15:07 ` [Buildroot] [PATCH] gcc: Add option to build final-gcc with sysroot option Peter Korsgaard
2009-11-28 20:41 ` Peter Korsgaard
[not found] ` <4B1374D2.9090701@st.com>
2009-11-30 8:08 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ws1c58dl.fsf@macbook.be.48ers.dk \
--to=jacmet@sunsite.dk \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.