]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[CLEANUP] report dlmalloc's source path only if explictly specified
authorWilly Tarreau <w@1wt.eu>
Fri, 7 Mar 2008 09:02:14 +0000 (10:02 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 7 Mar 2008 09:02:14 +0000 (10:02 +0100)
There's no point in reporting dlmalloc's source path if it was the
default one.

Makefile

index 4f3a723fee14a5203e3d93febc1e9922ba701fcc..5e9b11d9e40bae4c13b1cdd66f4ddb4df03030a3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -347,6 +347,11 @@ OPTIONS_CFLAGS += -DCONFIG_HAP_USE_REGPARM
 BUILD_OPTIONS  += $(call ignore_implicit,USE_REGPARM)
 endif
 
+# report DLMALLOC_SRC only if explicitly specified
+ifneq ($(DLMALLOC_SRC),)
+BUILD_OPTIONS += DLMALLOC_SRC=$(DLMALLOC_SRC)
+endif
+
 ifneq ($(USE_DLMALLOC),)
 BUILD_OPTIONS  += $(call ignore_implicit,USE_DLMALLOC)
 ifeq ($(DLMALLOC_SRC),)
@@ -355,10 +360,9 @@ endif
 endif
 
 ifneq ($(DLMALLOC_SRC),)
-# May be changed to match PAGE_SIZE on every platform
+# DLMALLOC_THRES may be changed to match PAGE_SIZE on every platform
 DLMALLOC_THRES = 4096
 OPTIONS_OBJS  += src/dlmalloc.o
-BUILD_OPTIONS += DLMALLOC_SRC=$(DLMALLOC_SRC)
 endif
 
 ifneq ($(USE_PCRE),)