X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=toolchain%2Fgcc%2Ffinal%2FMakefile;h=dcab9094e2cab7dc9684fd67b8871991daad8aec;hb=64dc82eab0b2963698042f250eca44fcb3bba4f0;hp=1decc951585044291f72e3626de2b7716862e1c7;hpb=62c174067616a911ef77a8cf02a6cc2220e534ec;p=lede-git%2F.git diff --git a/toolchain/gcc/final/Makefile b/toolchain/gcc/final/Makefile index 1decc95158..dcab9094e2 100644 --- a/toolchain/gcc/final/Makefile +++ b/toolchain/gcc/final/Makefile @@ -8,7 +8,7 @@ GCC_CONFIGURE += \ --enable-threads \ --with-slibdir=$(TOOLCHAIN_DIR)/lib -ifneq ($(CONFIG_GCC_VERSION_4_5),) +ifneq ($(CONFIG_GCC_VERSION_4_5)$(CONFIG_GCC_VERSION_4_6),) GCC_CONFIGURE += \ --enable-lto \ --with-libelf=$(TOPDIR)/staging_dir/host @@ -22,6 +22,11 @@ else --disable-tls endif +ifneq ($(CONFIG_SJLJ_EXCEPTIONS),) + GCC_CONFIGURE += \ + --enable-sjlj-exceptions +endif + define Host/Configure mkdir -p $(GCC_BUILD_DIR) $(TOOLCHAIN_DIR)/$(REAL_GNU_TARGET_NAME) # Important! Required for limits.h to be fixed. @@ -65,6 +70,7 @@ define Host/Install done; \ ); $(if $(CONFIG_EXTRA_TARGET_ARCH),$(call SetupExtraArch)) + $(SCRIPT_DIR)/patch-specs.sh "$(TOOLCHAIN_DIR)" endef $(eval $(call HostBuild))