<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 09/10/2018 11:00,
      <a class="moz-txt-link-abbreviated" href="mailto:wireguard-request@lists.zx2c4.com">wireguard-request@lists.zx2c4.com</a> wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:mailman.1.1539079201.20756.wireguard@lists.zx2c4.com">
      <pre wrap="">In fact :

[nicolas@linux wireguard-go-0.0.20180613]$ printf 'package main\nconst
UseTheKernelModuleInstead = 0xdeadbabe\n' > ireallywantobuildon_linux.go
[nicolas@linux wireguard-go-0.0.20180613]$ make
Makefile:7: *** Do not build this for Linux. Instead use the Linux kernel
module. See wireguard.com/install/ for more info..  Stop.</pre>
    </blockquote>
    <p>Look in the <a moz-do-not-send="true"
        href="https://github.com/WireGuard/wireguard-go/blob/master/Makefile">Makefile</a>:</p>
    <p>ifeq ($(shell go env GOOS),linux)<br>
      ifeq ($(wildcard .git),)<br>
      $(error Do not build this for Linux. Instead use the Linux kernel
      module. See wireguard.com/install/ for more info.)<br>
      else<br>
      $(shell printf 'package main\nconst UseTheKernelModuleInstead =
      0xdeadbabe\n' > ireallywantobuildon_linux.go)<br>
      endif<br>
      endif</p>
    <p>Also see
<a class="moz-txt-link-freetext" href="https://www.gnu.org/software/make/manual/html_node/Wildcard-Function.html">https://www.gnu.org/software/make/manual/html_node/Wildcard-Function.html</a></p>
    <p>It looks like you need to move the .git directory out of the way
      before you build - or just modify the Makefile. And you shouldn't
      need to manually create ireallywantobuildon_linux.go, because the
      Makefile does it for you.<br>
    </p>
  </body>
</html>