aboutsummaryrefslogtreecommitdiffstats
path: root/testing/websocketd/make.patch
blob: 678afdb27c0195c479cee7e98a20d90da77e7b58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
diff --git a/Makefile b/Makefile
index 9871b7d..7091128 100644
--- a/Makefile
+++ b/Makefile
@@ -10,13 +10,7 @@
 # To manually invoke the locally installed Go, use ./go
 
 # Go installation config.
-GO_VER=1.11.5
-SYSTEM_NAME:=$(shell uname -s | tr '[:upper:]' '[:lower:]')
-SYSTEM_ARCH:=$(shell uname -m)
-GO_ARCH:=$(if $(filter x86_64, $(SYSTEM_ARCH)),amd64,386)
-GO_VERSION:=$(GO_VER).$(SYSTEM_NAME)-$(GO_ARCH)
-GO_DOWNLOAD_URL:=https://dl.google.com/go/go$(GO_VERSION).tar.gz
-GO_DIR:=go-$(GO_VER)
+GO_DIR:=/usr
 
 # Build websocketd binary
 websocketd: $(GO_DIR)/bin/go $(wildcard *.go) $(wildcard libwebsocketd/*.go)
@@ -24,13 +18,6 @@ websocketd: $(GO_DIR)/bin/go $(wildcard *.go) $(wildcard libwebsocketd/*.go)
 
 localgo: $(GO_DIR)/bin/go
 
-# Download and unpack Go distribution.
-$(GO_DIR)/bin/go:
-	mkdir -p $(GO_DIR)
-	rm -f $@
-	@echo Downloading and unpacking Go $(GO_VERSION) to $(GO_DIR)
-	curl -s $(GO_DOWNLOAD_URL) | tar xf - --strip-components=1 -C $(GO_DIR)
-
 # Clean up binary
 clean:
 	rm -rf websocketd