aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target/samba/Makefile
diff options
context:
space:
mode:
authordavilla <davilla@4pi.com>2013-07-13 09:47:51 -0400
committerdavilla <davilla@4pi.com>2013-07-13 09:50:04 -0400
commit1bdabf694d74a9f4ef0aee8e22d95a0da3ec001d (patch)
tree4fcd55fa918a37ce9af4b3e7bc380ec92984028e /tools/depends/target/samba/Makefile
parent296093925468c2d40d433d4e66a07e0ee6fb12e5 (diff)
droid: fixed largefile smb access
Diffstat (limited to 'tools/depends/target/samba/Makefile')
-rw-r--r--tools/depends/target/samba/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/depends/target/samba/Makefile b/tools/depends/target/samba/Makefile
index 5dcd28f6b2..e3237caad8 100644
--- a/tools/depends/target/samba/Makefile
+++ b/tools/depends/target/samba/Makefile
@@ -18,7 +18,11 @@ ARCHIVE=$(SOURCE).tar.gz
# us to change the typedef of off_t in android's sys/type.h.
# Then xbmc will correctly access smb shares with LFS enabled
# using the altered libsmbclient.h.
-#export CFLAGS+=-D_FILE_OFFSET_BITS=64 -D_OFF_T_DEFINED_ -Doff_t=off64_t -Dlseek=lseek64
+ifeq ($(OS),android)
+export CFLAGS+=-D_FILE_OFFSET_BITS=64 -D_OFF_T_DEFINED_ -Doff_t=off64_t -Dlseek=lseek64
+ANDROID_OFF_T_FIX=sed -ie "s|off_t|off64_t|g" "$(PLATFORM)/source/include/libsmbclient.h"
+endif
+
CONFIGURE= cp -f $(CONFIG_SUB) $(CONFIG_GUESS) .; \
./configure --prefix=$(PREFIX) \
--disable-cups \
@@ -59,7 +63,7 @@ $(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS)
cd $(PLATFORM); patch -p1 < ../samba30-3.0.37-vfs_default.c.patch
cd $(PLATFORM); patch -p1 < ../samba30-3.0.37-wle-fix.patch
cd $(PLATFORM); patch -p0 < ../samba_android.patch
-# sed -ie "s|off_t|off64_t|g" "$(PLATFORM)/source/include/libsmbclient.h"
+ $(ANDROID_OFF_T_FIX)
cd $(PLATFORM)/source && ./autogen.sh
cd $(PLATFORM)/source; $(CONFIGURE)