mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-08 02:10:00 +00:00
Merge pull request #1984 from rneugeba/build
build: Make GOOS and GOARCH over-writeable
This commit is contained in:
4
Makefile
4
Makefile
@@ -9,8 +9,8 @@ GO_COMPILE=linuxkit/go-compile:6579a00b44686d0e504d513fc4860094769fe7df
|
|||||||
|
|
||||||
MOBY?=bin/moby
|
MOBY?=bin/moby
|
||||||
LINUXKIT?=bin/linuxkit
|
LINUXKIT?=bin/linuxkit
|
||||||
GOOS=$(shell uname -s | tr '[:upper:]' '[:lower:]')
|
GOOS?=$(shell uname -s | tr '[:upper:]' '[:lower:]')
|
||||||
GOARCH=amd64
|
GOARCH?=amd64
|
||||||
ifneq ($(GOOS),linux)
|
ifneq ($(GOOS),linux)
|
||||||
CROSS=-e GOOS=$(GOOS) -e GOARCH=$(GOARCH)
|
CROSS=-e GOOS=$(GOOS) -e GOARCH=$(GOARCH)
|
||||||
endif
|
endif
|
||||||
|
Reference in New Issue
Block a user