1
0
mirror of https://github.com/taigrr/gopher-os synced 2025-01-18 04:43:13 -08:00

Make the GO variable visible on non-linux hosts

This commit is contained in:
Achilleas Anagnostopoulos 2017-06-17 11:08:02 +01:00
parent 45fb719d04
commit 2f56d78629

View File

@ -6,15 +6,16 @@ BUILD_ABS_DIR := $(CURDIR)/$(BUILD_DIR)
kernel_target :=$(BUILD_DIR)/kernel-$(ARCH).bin
iso_target := $(BUILD_DIR)/kernel-$(ARCH).iso
# If your go is called something else set it on the commandline, like
# this: make run GO=go1.8
GO ?= go
ifeq ($(OS), Linux)
export SHELL := /bin/bash -o pipefail
LD := ld
AS := nasm
# If your go is called something else set it on the commandline, like
# this: make run GO=go1.8
GO ?= go
GOOS := linux
GOARCH := amd64
GOROOT := $(shell $(GO) env GOROOT)