summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-05-16 22:31:46 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-05-17 18:07:42 +0200
commitd3d647879aa352b179172c312f31f73d55c8024e (patch)
tree2289bf2141bb6f3695f349a628406aaa40c6b358 /src
parentb50e0c0fc218d5d058218fbb77840debb9efd797 (diff)
Kbuild: optimize debug builds too
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src')
-rw-r--r--src/Kbuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Kbuild b/src/Kbuild
index bbde348..e2aa9de 100644
--- a/src/Kbuild
+++ b/src/Kbuild
@@ -1,5 +1,5 @@
ccflags-y := -O3 -fvisibility=hidden
-ccflags-$(CONFIG_WIREGUARD_DEBUG) := -DDEBUG -g
+ccflags-$(CONFIG_WIREGUARD_DEBUG) += -DDEBUG -g
ccflags-y += -Wframe-larger-than=8192
ccflags-y += -D'pr_fmt(fmt)=KBUILD_MODNAME ": " fmt'
wireguard-y := main.o noise.o device.o peer.o timers.o data.o send.o receive.o socket.o config.o hashtables.o routingtable.o ratelimiter.o cookie.o