X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/28d850dfd2af385724739beb9e17f2042d76d300..74d41dbe9d587491909ac02e745b3670f604bd7f:/toolchain/gcc/Makefile diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile index 8b920607e..9536cc245 100644 --- a/toolchain/gcc/Makefile +++ b/toolchain/gcc/Makefile @@ -116,11 +116,6 @@ else --disable-libssp endif -ifeq ($(CONFIG_TLS_SUPPORT),) - GCC_CONFIGURE+= \ - --disable-tls -endif - ifneq ($(CONFIG_EXTRA_TARGET_ARCH),) GCC_CONFIGURE+= \ --enable-biarch \ @@ -159,6 +154,14 @@ GCC_CONFIGURE_STAGE2:= \ --enable-threads \ --with-slibdir=$(TOOLCHAIN_DIR)/lib \ +ifneq ($(CONFIG_TLS_SUPPORT),) + GCC_CONFIGURE_STAGE2+= \ + --enable-tls +else + GCC_CONFIGURE_STAGE2+= \ + --disable-tls +endif + ifdef CONFIG_powerpc TARGET_CFLAGS := $(patsubst -Os,-O2,$(TARGET_CFLAGS)) endif @@ -250,7 +253,7 @@ define SetupExtraArch endef define Stage2/Install - $(GCC_MAKE) -C $(HOST_BUILD_DIR2) install + $(_SINGLE)$(GCC_MAKE) -C $(HOST_BUILD_DIR2) install # Set up the symlinks to enable lying about target name. set -e; \ (cd $(TOOLCHAIN_DIR)/usr; \