X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/0bab2230e6c3ec2f03ab8d37b58557c19c4eb4d6..c3fd35e7800ae1f2dd3fa42ade850c948e4b18ea:/toolchain/gcc/Makefile diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile index 346971c65..f1328a358 100644 --- a/toolchain/gcc/Makefile +++ b/toolchain/gcc/Makefile @@ -124,6 +124,7 @@ GCC_CONFIGURE_STAGE2:= \ --enable-languages=$(TARGET_LANGUAGES) \ --enable-shared \ --enable-threads \ + --disable-tls \ --with-slibdir=$(TOOLCHAIN_DIR)/lib \ GCC_MAKE:= \ @@ -176,6 +177,7 @@ define Stage1/Install # XXX: glibc insists on linking against libgcc_eh ( cd $(TOOLCHAIN_DIR)/usr/lib/gcc/$(REAL_GNU_TARGET_NAME)/$(PKG_VERSION) ; \ [ -e libgcc_eh.a ] || ln -sf libgcc.a libgcc_eh.a ; \ + cp libgcc.a libgcc_initial.a; \ ) endef