Skip to content

Commit

Permalink
install native go package
Browse files Browse the repository at this point in the history
- avoid compilation of native go and bootstrap with go 1.4
  • Loading branch information
hgy59 committed Jun 26, 2021
1 parent fed72e8 commit bb4ca34
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 41 deletions.
23 changes: 0 additions & 23 deletions native/go-1.4/Makefile

This file was deleted.

3 changes: 0 additions & 3 deletions native/go-1.4/digests

This file was deleted.

19 changes: 4 additions & 15 deletions native/go/Makefile
Original file line number Diff line number Diff line change
@@ -1,26 +1,15 @@
PKG_NAME = go
PKG_VERS = 1.16.5
PKG_EXT = tar.gz
PKG_DIST_NAME = $(PKG_NAME)$(PKG_VERS).src.$(PKG_EXT)
PKG_DIST_SITE = https://storage.googleapis.com/golang
PKG_DIST_NAME = $(PKG_NAME)$(PKG_VERS).linux-amd64.$(PKG_EXT)
PKG_DIST_SITE = https://golang.org/dl
PKG_DIR = $(PKG_NAME)

DEPENDS = native/go-1.4

HOMEPAGE = https://golang.org/
COMMENT = Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
LICENSE = BSD-style

CONFIGURE_TARGET = nop
COMPILE_TARGET = go_native_compile
# extract only to $(WORK_DIR)
INSTALL_TARGET = nop

GOROOT_BOOTSTRAP14=$(WORK_DIR)/../../go-1.4/work-native/go

include ../../mk/spksrc.native-cc.mk

.PHONY: go_native_compile
go_native_compile:
@$(MSG) "Building Go for host system"
# GO111MODULE disable go.mod per https://github.com/golang/go/issues/26996
cd $(WORK_DIR)/$(PKG_NAME)/src && CC=gcc CXX=g++ GOOS="linux" GOHOSTARCH="amd64" GOARCH="amd64" GO111MODULE=off GOROOT_BOOTSTRAP=$(GOROOT_BOOTSTRAP14) ./make.bash
include ../../mk/spksrc.native-install.mk

0 comments on commit bb4ca34

Please sign in to comment.