BUILD: Show the value of DEBUG= in haproxy -vv
authorTim Duesterhus <tim@bastelstu.be>
Sat, 21 Nov 2020 17:07:59 +0000 (18:07 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Fri, 27 Nov 2020 13:58:42 +0000 (14:58 +0100)
Previously this was not visible after building.

(cherry picked from commit c8d19702f46867900d7b4de240c168f1c1bb594e)
Signed-off-by: William Lallemand <wlallemand@haproxy.org>

Makefile
src/haproxy.c

index e1fcf59..8b5f714 100644 (file)
--- 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 $@ $<
 
index cdc11a4..019cc57 100644 (file)
@@ -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