Do not build on Linux

This commit is contained in:
Jason A. Donenfeld 2018-05-24 16:41:42 +02:00
parent 2f2eca8947
commit 625d59da14

View file

@ -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