gcc: fix gcc 4.8 build when thread support is disabled
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 26 May 2013 12:08:14 +0000 (12:08 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 27 May 2013 21:51:05 +0000 (23:51 +0200)
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>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
toolchain/gcc/gcc-uclibc-4.x.mk

index 21679ef17f710f4f51c03c601e260b5c3cafad59..5be26c44c07c8abb14625c2827e811fc82f7fa1e 100644 (file)
@@ -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