Do not build on Linux
This commit is contained in:
parent
2f2eca8947
commit
625d59da14
2
Makefile
2
Makefile
|
@ -5,8 +5,6 @@ BINDIR ?= $(PREFIX)/bin
|
|||
ifeq ($(shell go env GOOS),linux)
|
||||
ifeq ($(wildcard .git),)
|
||||
$(error Do not build this for Linux. Instead use the Linux kernel module. See wireguard.com/install/ for more info.)
|
||||
else
|
||||
$(shell printf 'package main\nconst UseTheKernelModuleInstead = 0xdeadbabe\n' > ireallywantobuildon_linux.go)
|
||||
endif
|
||||
endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue