]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commitdiff
Makefile: DEBUG_TOOLS -> DEBUG and document
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 26 Dec 2019 15:50:55 +0000 (16:50 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 26 Dec 2019 15:51:58 +0000 (16:51 +0100)
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
README.md
src/Makefile

index db5a4d56e24a5867ef515febb4d19a706a779ca2..be66e2136e4243f39555d77b39d68408fcfa44d1 100644 (file)
--- a/README.md
+++ b/README.md
@@ -36,6 +36,7 @@ This command takes into account several environment variables:
   * `WITH_BASHCOMPLETION`  default: [auto-detect]
   * `WITH_WGQUICK`         default: [auto-detect]
   * `WITH_SYSTEMDUNITS`    default: [auto-detect]
+  * `DEBUG`                default:
 
 The first section is rather standard. The second section is not:
 
@@ -61,6 +62,8 @@ The first section is rather standard. The second section is not:
     should set it to `no`. If systemd isn't auto-detected, but you still would
     like to install it, set this to `yes`.
 
+  * `DEBUG` decides whether to build with `-g`, when set to `yes`.
+
 If you're a simple `make && make install` kind of user, you can get away with
 not setting these variables and relying on the auto-detection. However, if
 you're writing a package for a distro, you'll want to explicitly set these,
index f8eaebff4570746cbf2d59867af5281851ef6304..de1a16cd2fecc0696a14651dedb4f66ae30d1a46 100644 (file)
@@ -43,7 +43,7 @@ CFLAGS += -std=gnu99 -D_GNU_SOURCE
 CFLAGS += -Wall -Wextra
 CFLAGS += -MMD -MP
 CFLAGS += -DRUNSTATEDIR="\"$(RUNSTATEDIR)\""
-ifeq ($(DEBUG_TOOLS),y)
+ifeq ($(DEBUG),yes)
 CFLAGS += -g
 endif
 ifeq ($(PLATFORM),linux)