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
-- 
2.29.0


Reply via email to