golang: split compile recipe into configure and compile
the default Configure recipe for packages assumes that there is a "configure" script in the source tree directory Go does not have such a script, configure and compile is done with the same script so split the current Compile recipe into both Configure and Compile recipes Signed-off-by: Michael Pratt <mcpratt@pm.me>
This commit is contained in:
parent
0b5eb86718
commit
abf28899a0
1 changed files with 6 additions and 2 deletions
|
@ -207,12 +207,14 @@ HOST_GO_VARS= \
|
||||||
CC="$(HOSTCC_NOCACHE)" \
|
CC="$(HOSTCC_NOCACHE)" \
|
||||||
CXX="$(HOSTCXX_NOCACHE)"
|
CXX="$(HOSTCXX_NOCACHE)"
|
||||||
|
|
||||||
define Host/Compile
|
define Host/Configure
|
||||||
$(call GoCompiler/Bootstrap/CheckHost,$(BOOTSTRAP_GO_VALID_OS_ARCH))
|
$(call GoCompiler/Bootstrap/CheckHost,$(BOOTSTRAP_GO_VALID_OS_ARCH))
|
||||||
$(call GoCompiler/Host/CheckHost,$(HOST_GO_VALID_OS_ARCH))
|
$(call GoCompiler/Host/CheckHost,$(HOST_GO_VALID_OS_ARCH))
|
||||||
|
|
||||||
mkdir -p "$(GO_BUILD_CACHE_DIR)"
|
mkdir -p "$(GO_BUILD_CACHE_DIR)"
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Host/Compile
|
||||||
$(call GoCompiler/Bootstrap/Make, \
|
$(call GoCompiler/Bootstrap/Make, \
|
||||||
$(HOST_GO_VARS) \
|
$(HOST_GO_VARS) \
|
||||||
)
|
)
|
||||||
|
@ -300,9 +302,11 @@ PKG_GO_INSTALL_ARGS= \
|
||||||
$(if $(PKG_GO_ASMFLAGS),-asmflags "all=$(PKG_GO_ASMFLAGS)") \
|
$(if $(PKG_GO_ASMFLAGS),-asmflags "all=$(PKG_GO_ASMFLAGS)") \
|
||||||
$(if $(filter $(GO_PKG_ENABLE_PIE),1),-buildmode pie)
|
$(if $(filter $(GO_PKG_ENABLE_PIE),1),-buildmode pie)
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Configure
|
||||||
mkdir -p "$(GO_BUILD_CACHE_DIR)"
|
mkdir -p "$(GO_BUILD_CACHE_DIR)"
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Build/Compile
|
||||||
@echo "Building target Go first stage"
|
@echo "Building target Go first stage"
|
||||||
|
|
||||||
$(call GoCompiler/Package/Make, \
|
$(call GoCompiler/Package/Make, \
|
||||||
|
|
Loading…
Reference in a new issue