X-Git-Url: http://git.ozo.com/?p=openwrt-10.03%2F.git;a=blobdiff_plain;f=toolchain%2Fgcc%2FMakefile;fp=toolchain%2Fgcc%2FMakefile;h=9536cc245bdac5b6685861a17ac450aeb464b6ca;hp=9c820f2feca59a81cfec96957c58a7ce9af7ca39;hb=1a467d902b3895bf52c15d4657e042390416ed44;hpb=ce094a4b73365300ed53c6de4d4a2f7b22bc4c35 diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile index 9c820f2fe..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