mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-15 18:03:30 +00:00
toolchain/gcc: GCC12 sync upstream (#10080)
This commit is contained in:
parent
43f8817298
commit
985cc94b09
@ -191,6 +191,12 @@ define Host/SetToolchainInfo
|
||||
$(SED) 's,GCC_VERSION=.*,GCC_VERSION=$(GCC_VERSION),' $(TOOLCHAIN_DIR)/info.mk
|
||||
endef
|
||||
|
||||
ifdef CONFIG_GCC_USE_VERSION_12
|
||||
GCC_VERSION_FILE:=gcc/genversion.cc
|
||||
else
|
||||
GCC_VERSION_FILE:=gcc/version.c
|
||||
endif
|
||||
|
||||
ifneq ($(GCC_PREPARE),)
|
||||
define Host/Prepare
|
||||
$(call Host/SetToolchainInfo)
|
||||
@ -199,8 +205,7 @@ ifneq ($(GCC_PREPARE),)
|
||||
$(CP) $(SCRIPT_DIR)/config.{guess,sub} $(HOST_SOURCE_DIR)/
|
||||
$(SED) 's,^MULTILIB_OSDIRNAMES,# MULTILIB_OSDIRNAMES,' $(HOST_SOURCE_DIR)/gcc/config/*/t-*
|
||||
$(SED) 'd' $(HOST_SOURCE_DIR)/gcc/DEV-PHASE
|
||||
$(SED) 's, DATESTAMP,,' $(HOST_SOURCE_DIR)/gcc/version.c
|
||||
#(cd $(HOST_SOURCE_DIR)/libstdc++-v3; autoconf;);
|
||||
$(SED) 's, DATESTAMP,,' $(HOST_SOURCE_DIR)/$(GCC_VERSION_FILE)
|
||||
$(SED) 's,gcc_no_link=yes,gcc_no_link=no,' $(HOST_SOURCE_DIR)/libstdc++-v3/configure
|
||||
mkdir -p $(GCC_BUILD_DIR)
|
||||
endef
|
||||
|
Loading…
Reference in New Issue
Block a user