网页 综合 更新时间 2026-11-14 09:25:12

Compilation from Source Code - WireGuard

自动蜘蛛 www.wireguard.com 正文约 1516 字
You will need gcc ≥4.7 and your kernel headers in the right location for compilation.
(You may instead run make debug if you'd like to have additional information on what's happening in your dmesg(1).)
*** Move on to the quick start walkthrough. ***
WireGuard requires Linux ≥3.10, with the following configuration options, which are likely already configured in your kernel, especially if you're installing via distribution packages.
Some, but not all, of these options directly correspond to menuconfig entries. The ones that do not correspond directly correspond to options that imply them. For enabling the above options, select these items in menuconfig:
When building as an out of tree module, it is probable that one needs CONFIG_UNUSED_SYMBOLS set as well.
Rather than building as an external module, if you would like to build WireGuard as a module or as built-in, directly from within the kernel tree, you may use the create-patch.sh script which creates a patch for adding WireGuard directly to the tree or the jury-rig.sh script which links the WireGuard source directory into the kernel tree:
Then you will be able to configure these options directly:
These are selectable easily via menuconfig, if CONFIG_NET and CONFIG_INET are also selected:
© Copyright 2015-2022 Jason A. Donenfeld. All Rights Reserved. "WireGuard" and the "WireGuard" logo are registered trademarks of Jason A. Donenfeld.
This project is from ZX2C4 and from Edge Security, a firm devoted to information security research expertise.
访问原文 返回搜索 https://www.wireguard.com/compilation/
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。