public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
From: Niels Penneman <niels@penneman.org>
To: crossgcc@sourceware.org
Subject: [PATCH] cc/gcc: fix gcc 4.8 build for C library without threads support
Date: Fri, 03 Jan 2014 09:57:00 -0000	[thread overview]
Message-ID: <309df93f4354c80e05c9.1388743085@i7sb.local> (raw)

# HG changeset patch
# User Niels Penneman <niels@penneman.org>
# Date 1388743068 -3600
#      Fri Jan 03 10:57:48 2014 +0100
# Node ID 309df93f4354c80e05c950ded710d111c50d7b26
# Parent  8e2077dfc250877b2182f31cac97bd1292e01026
cc/gcc: fix gcc 4.8 build for C library without threads support
Signed-off-by: Niels Penneman <niels@penneman.org>

diff -r 8e2077dfc250 -r 309df93f4354 scripts/build/cc/gcc.sh
--- a/scripts/build/cc/gcc.sh	Fri Jan 03 00:13:15 2014 +0100
+++ b/scripts/build/cc/gcc.sh	Fri Jan 03 10:57:48 2014 +0100
@@ -643,6 +643,11 @@
     if [ -n "${CT_CC_ENABLE_CXX_FLAGS}" ]; then
         extra_config+=("--enable-cxx-flags=${CT_CC_ENABLE_CXX_FLAGS}")
     fi
+    if [ "${CT_CC_GCC_4_8_or_later}" = "y" ]; then
+        if [ "${CT_THREADS}" = "none" ]; then
+            extra_config+=(--disable-libatomic)
+        fi
+    fi
     if [ "${CT_CC_GCC_LIBMUDFLAP}" = "y" ]; then
         extra_config+=(--enable-libmudflap)
     else

--
For unsubscribe information see http://sourceware.org/lists.html#faq

             reply	other threads:[~2014-01-03  9:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-03  9:57 Niels Penneman [this message]
2014-01-03 11:30 ` Yann E. MORIN
2014-01-03 11:40 ` [PATCH] " Yann E. MORIN

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=309df93f4354c80e05c9.1388743085@i7sb.local \
    --to=niels@penneman.org \
    --cc=crossgcc@sourceware.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).