Forráskód Böngészése

better handling for no-thread compiles of toolchain

Waldemar Brodkorb 10 éve
szülő
commit
829a0ca9fa
2 módosított fájl, 2 hozzáadás és 4 törlés
  1. 1 0
      target/config/Config.in.libc.choice
  2. 1 4
      toolchain/gcc/Makefile

+ 1 - 0
target/config/Config.in.libc.choice

@@ -115,6 +115,7 @@ prompt "Threading"
 depends on ADK_TARGET_LIB_UCLIBC || ADK_TARGET_LIB_UCLIBC_NG
 
 config ADK_TARGET_LIB_WITH_THREADS
+	depends on ADK_TARGET_WITH_LT || ADK_TARGET_WITH_NPTL
 	bool "enable threads"
 
 config ADK_TARGET_LIB_WITHOUT_THREADS

+ 1 - 4
toolchain/gcc/Makefile

@@ -23,7 +23,6 @@ TARGET_CFLAGS:=		$(filter-out -msep-data,$(TARGET_CFLAGS))
 TARGET_CXXFLAGS:=	$(filter-out -msep-data,$(TARGET_CXXFLAGS))
 endif
 
-
 GCC_CONFOPTS:=		--prefix=$(TOOLCHAIN_DIR)/usr \
 			--with-bugurl="http://www.openadk.org/" \
 			--build=$(GNU_HOST_NAME) \
@@ -60,9 +59,7 @@ GCC_CONFOPTS+=         --enable-tls --enable-threads --enable-libatomic
 else
 GCC_CONFOPTS+=         --disable-tls --disable-threads --disable-libatomic
 endif
-endif
-
-ifeq ($(ADK_TARGET_WITH_LT),y)
+else
 GCC_CONFOPTS+=         --disable-tls --disable-threads --disable-libatomic
 endif