--disable-libssp
endif
-ifeq ($(CONFIG_TLS_SUPPORT),)
- GCC_CONFIGURE+= \
- --disable-tls
-endif
-
ifneq ($(CONFIG_EXTRA_TARGET_ARCH),)
GCC_CONFIGURE+= \
--enable-biarch \
--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
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; \