From b8924782a1b3fce25c05b192d27f9f6754f924dd Mon Sep 17 00:00:00 2001 From: RPRX <63339210+RPRX@users.noreply.github.com> Date: Fri, 26 Apr 2024 10:28:15 +0000 Subject: [PATCH] Revert "Makefile: export GOARCH, GOOS" https://github.com/XTLS/Xray-core/pull/3275#issuecomment-2079093724 Fixes https://github.com/XTLS/Xray-core/issues/3305 --- Makefile | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Makefile b/Makefile index 0578fe67..ad6d13f0 100644 --- a/Makefile +++ b/Makefile @@ -2,15 +2,6 @@ NAME = xray VERSION=$(shell git describe --always --dirty) -export GOARCH ?= -export GOOS ?= - -ifdef GOARCH - ifeq ($(GOOS),darwin) - NAME:=$(NAME)-$(GOARCH) - endif -endif - LDFLAGS = -X github.com/xtls/xray-core/core.build=$(VERSION) -s -w -buildid= PARAMS = -trimpath -ldflags "$(LDFLAGS)" -v MAIN = ./main