[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.osx b/Makefile.osx
index 586d449..f2469bc 100644
--- a/Makefile.osx
+++ b/Makefile.osx
@@ -116,6 +116,11 @@
.c.o:
$(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 $@ $<