summaryrefslogtreecommitdiffstats
path: root/package/luafilesystem/luafilesystem.mk
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2010-08-25 14:49:17 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2010-08-25 14:49:17 +0200
commita99b1bb24fa09ecbdcde0364514d3690caaadcc8 (patch)
tree7abf0c1fff6a0b871a2f5a12200d32a06c2c9d35 /package/luafilesystem/luafilesystem.mk
parent2c31d745ac08e620d143cc266e2b7113754a8787 (diff)
parent311e0a6fc49a2135a3a5e1e63fe8b77c184cb8c9 (diff)
downloadbuildroot-novena-a99b1bb24fa09ecbdcde0364514d3690caaadcc8.tar.gz
buildroot-novena-a99b1bb24fa09ecbdcde0364514d3690caaadcc8.zip
Merge branch 'for-2010.08' of git://git.busybox.net/~tpetazzoni/git/buildroot
Diffstat (limited to 'package/luafilesystem/luafilesystem.mk')
-rw-r--r--package/luafilesystem/luafilesystem.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/package/luafilesystem/luafilesystem.mk b/package/luafilesystem/luafilesystem.mk
index a27080cd6..e68873414 100644
--- a/package/luafilesystem/luafilesystem.mk
+++ b/package/luafilesystem/luafilesystem.mk
@@ -8,8 +8,12 @@ LUAFILESYSTEM_VERSION = 1.5.0
LUAFILESYSTEM_SITE = http://github.com/downloads/keplerproject/luafilesystem
LUAFILESYSTEM_DEPENDENCIES = lua
+ifeq ($(BR2_LARGEFILE),y)
+LFS_CFLAGS = -D_FILE_OFFSET_BITS=64 _LARGEFILE64_SOURCE
+endif
+
define LUAFILESYSTEM_BUILD_CMDS
- $(MAKE) -C $(@D) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS) -fPIC"
+ $(MAKE) -C $(@D) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS) $(LFS_CFLAGS) -fPIC"
endef
define LUAFILESYSTEM_INSTALL_TARGET_CMDS