summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraven <citrons@mondecitronne.com>2026-02-20 12:58:00 -0600
committerraven <citrons@mondecitronne.com>2026-02-20 12:58:00 -0600
commit05c068749740f9430d1fda7698c433697eef1652 (patch)
treeb200434a3f85522b8b72bd3c13584bd82f45b225
parent26801a06240c048e69ab00941ebcacd243382f86 (diff)
mystifying: go produces dynamic executable unless CGO_ENABLED=0
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 10d75cd..fc36307 100644
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,16 @@
talk:
- go build -o ./talk ./client
+ CGO_ENABLED=0 go build -o ./talk ./client
talkd:
- go build -o ./talkd ./server
+ CGO_ENABLED=0 go build -o ./talkd ./server
all: talk talkd
clean:
rm -f talk talkd
-.PHONY: clean talk talkd
+.PHONY: clean install talk talkd
-install: all
+install:
mkdir -p /usr/local/bin/
install -m755 talk /usr/local/bin/talk
install -m755 talkd /usr/local/bin/talkd