diff mbox

[04/20] gcc: fix gcc 4.8 build when thread support is disabled

Message ID 1369606110-8088-5-git-send-email-thomas.petazzoni@free-electrons.com
State Accepted
Commit 517de29c523cd3561e723228a50aa414d3dc3fe1
Headers show

Commit Message

Thomas Petazzoni May 26, 2013, 10:08 p.m. UTC
When thread support is disabled, the libitm and libatomic libraries
from gcc should be disabled, otherwise, the build of gcc fails.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 toolchain/gcc/gcc-uclibc-4.x.mk |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Peter Korsgaard May 27, 2013, 11:36 a.m. UTC | #1
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 Thomas> When thread support is disabled, the libitm and libatomic libraries
 Thomas> from gcc should be disabled, otherwise, the build of gcc fails.

Committed to next, thanks.
Peter Korsgaard May 27, 2013, 9:55 p.m. UTC | #2
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 Thomas> When thread support is disabled, the libitm and libatomic libraries
 Thomas> from gcc should be disabled, otherwise, the build of gcc fails.

I've added this for 2013.05 instead, thanks.
diff mbox

Patch

diff --git a/toolchain/gcc/gcc-uclibc-4.x.mk b/toolchain/gcc/gcc-uclibc-4.x.mk
index 21679ef..5be26c4 100644
--- a/toolchain/gcc/gcc-uclibc-4.x.mk
+++ b/toolchain/gcc/gcc-uclibc-4.x.mk
@@ -203,7 +203,7 @@  GCC_TLS:=--disable-tls
 endif
 
 ifeq ($(BR2_PTHREADS_NONE),y)
-THREADS:=--disable-threads
+THREADS:=--disable-threads --disable-libitm --disable-libatomic
 else
 THREADS:=--enable-threads
 endif