]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
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)
committerWilly Tarreau <w@1wt.eu>
Sat, 21 Nov 2020 17:27:33 +0000 (18:27 +0100)
Previously this was not visible after building.

Makefile
src/haproxy.c

index ff2084dd1fdb737017fefba8152ac1c02fe40a5f..dd85e51a2068df1366e72c4231f72e3e9e9b2e6c 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 cdc11a4e5a430999b172c27ea4f958714e63ef18..019cc571c9947445eb14daba7f00d807483e33c3 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