samba: properly disable largefile if not selected in Buildroot
authorHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Tue, 13 Jan 2009 07:26:55 +0000 (07:26 -0000)
committerHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Tue, 13 Jan 2009 07:26:55 +0000 (07:26 -0000)
package/samba/samba.mk

index 91d1c2034861015e4317b4a6c2eec7bd3d9267b1..ad0bec9d99d2cad32e641f7cdc0ad27b0bcd0257 100644 (file)
@@ -11,6 +11,10 @@ SAMBA_CAT:=$(ZCAT)
 SAMBA_BINARY:=bin/smbd
 SAMBA_TARGET_BINARY:=usr/sbin/smbd
 
+ifneq ($(BR2_LARGEFILE),y)
+SAMBA_DISABLE_LARGEFILE:=--disable-largefile
+endif
+
 $(DL_DIR)/$(SAMBA_SOURCE):
        $(WGET) -P $(DL_DIR) $(SAMBA_SITE)/$(SAMBA_SOURCE)
 
@@ -55,7 +59,7 @@ $(SAMBA_DIR)/.configured: $(SAMBA_DIR)/.unpacked
                --disable-shared-libs \
                --disable-static \
                --disable-cups \
-               $(BR2_LARGEFILE) \
+               $(SAMBA_DISABLE_LARGEFILE) \
        )
        touch $@