[MINOR] store the build options to report with -vv
Sometimes it is useful to find out how a given binary version was
built. The build compiler and options are now provided for this,
and it's possible to get them with the -vv option.
diff --git a/Makefile b/Makefile
index aa523cd..25c460f 100644
--- a/Makefile
+++ b/Makefile
@@ -245,6 +245,11 @@
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
+src/haproxy.o: src/haproxy.c
+ $(CC) $(CFLAGS) -DBUILD_TARGET='"$(TARGET)"' -DBUILD_CC='"$(CC)"' \
+ -DBUILD_CPU='"$(CPU)"' -DBUILD_REGEX='"$(REGEX)"' \
+ -DBUILD_OPTS='"$(COPTS)"' -c -o $@ $<
+
src/dlmalloc.o: $(DLMALLOC_SRC)
$(CC) $(CFLAGS) -DDEFAULT_MMAP_THRESHOLD=$(DLMALLOC_THRES) -c -o $@ $<