mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-17 14:54:43 +02:00
[toolchain] gcc: only enable/disable TLS support in final stage (closes: #6788)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20018 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
ce094a4b73
commit
1a467d902b
@ -116,11 +116,6 @@ else
|
|||||||
--disable-libssp
|
--disable-libssp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_TLS_SUPPORT),)
|
|
||||||
GCC_CONFIGURE+= \
|
|
||||||
--disable-tls
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifneq ($(CONFIG_EXTRA_TARGET_ARCH),)
|
ifneq ($(CONFIG_EXTRA_TARGET_ARCH),)
|
||||||
GCC_CONFIGURE+= \
|
GCC_CONFIGURE+= \
|
||||||
--enable-biarch \
|
--enable-biarch \
|
||||||
@ -159,6 +154,14 @@ GCC_CONFIGURE_STAGE2:= \
|
|||||||
--enable-threads \
|
--enable-threads \
|
||||||
--with-slibdir=$(TOOLCHAIN_DIR)/lib \
|
--with-slibdir=$(TOOLCHAIN_DIR)/lib \
|
||||||
|
|
||||||
|
ifneq ($(CONFIG_TLS_SUPPORT),)
|
||||||
|
GCC_CONFIGURE_STAGE2+= \
|
||||||
|
--enable-tls
|
||||||
|
else
|
||||||
|
GCC_CONFIGURE_STAGE2+= \
|
||||||
|
--disable-tls
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef CONFIG_powerpc
|
ifdef CONFIG_powerpc
|
||||||
TARGET_CFLAGS := $(patsubst -Os,-O2,$(TARGET_CFLAGS))
|
TARGET_CFLAGS := $(patsubst -Os,-O2,$(TARGET_CFLAGS))
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user