From c8d19702f46867900d7b4de240c168f1c1bb594e Mon Sep 17 00:00:00 2001 From: Tim Duesterhus Date: Sat, 21 Nov 2020 18:07:59 +0100 Subject: [PATCH] BUILD: Show the value of DEBUG= in haproxy -vv Previously this was not visible after building. --- Makefile | 1 + src/haproxy.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Makefile b/Makefile index ff2084dd1..dd85e51a2 100644 --- a/Makefile +++ b/Makefile @@ -919,6 +919,7 @@ src/haproxy.o: src/haproxy.c $(DEP) -DBUILD_CC='"$(strip $(CC))"' \ -DBUILD_CFLAGS='"$(strip $(VERBOSE_CFLAGS))"' \ -DBUILD_OPTIONS='"$(strip $(BUILD_OPTIONS))"' \ + -DBUILD_DEBUG='"$(strip $(DEBUG))"' \ -DBUILD_FEATURES='"$(strip $(BUILD_FEATURES))"' \ -c -o $@ $< diff --git a/src/haproxy.c b/src/haproxy.c index cdc11a4e5..019cc571c 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -586,6 +586,9 @@ static void display_build_opts() #ifdef BUILD_OPTIONS "\n OPTIONS = " BUILD_OPTIONS #endif +#ifdef BUILD_DEBUG + "\n DEBUG = " BUILD_DEBUG +#endif #ifdef BUILD_FEATURES "\n\nFeature list : " BUILD_FEATURES #endif