adds support for files > 2GB to samba3
authorJohn Crispin <john@openwrt.org>
Wed, 10 Sep 2008 12:23:15 +0000 (12:23 +0000)
committerJohn Crispin <john@openwrt.org>
Wed, 10 Sep 2008 12:23:15 +0000 (12:23 +0000)
SVN-Revision: 12564

net/samba3/Makefile

index 965e889..be69a45 100644 (file)
@@ -36,9 +36,9 @@ define Package/samba3/config
 endef
 
 define Build/Compile
-       CFLAGS="$(TARGET_CFLAGS)" \
+       CFLAGS="$(TARGET_CFLAGS) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" \
        CC="$(TARGET_CC)" \
-       CPPFLAGS="$(TARGET_CPPFLAGS)" \
+       CPPFLAGS="$(TARGET_CPPFLAGS) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" \
        LDFLAGS="$(TARGET_LDFLAGS)" \
                $(MAKE) -C $(PKG_BUILD_DIR)/source \
                        all bin/smbpasswd