From e5627bd798a2291f36326558d7cbe1e8f6bb01e1 Mon Sep 17 00:00:00 2001 From: Gustavo Zacarias Date: Sat, 4 May 2013 02:06:45 +0000 Subject: samba: add option for built-in debug messages This option allows users to specify the maximum level for compiled-in debug messages with -1 being none. In a typical scenario of nmbd+smbd+smbpasswd this can save a full megabyte of target space. Signed-off-by: Gustavo Zacarias Signed-off-by: Peter Korsgaard --- package/samba/samba.mk | 3 +++ 1 file changed, 3 insertions(+) (limited to 'package/samba/samba.mk') diff --git a/package/samba/samba.mk b/package/samba/samba.mk index 3a004e1d5..683c7b2e0 100644 --- a/package/samba/samba.mk +++ b/package/samba/samba.mk @@ -158,6 +158,9 @@ else SAMBA_CONF_OPT += --with-libiconv="" endif +# Compiled debug messages by level +SAMBA_CONF_OPT += CFLAGS="$(TARGET_CFLAGS) -DMAX_DEBUG_LEVEL=$(BR2_PACKAGE_SAMBA_MAX_DEBUGLEVEL)" + ifeq ($(BR2_PACKAGE_SAMBA_SWAT),y) ifneq ($(BR2_HAVE_DOCUMENTATION),y) SAMBA_POST_INSTALL_TARGET_HOOKS += SAMBA_REMOVE_SWAT_DOCUMENTATION -- cgit v1.2.3