summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-11-23 13:25:24 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2009-11-23 13:25:24 (GMT)
commitbba2fd540bc211bbcea1ad1dfc552fe32021097d (patch)
tree293479c684d987a103a6f5bc7bc2fef33c027cd0
parent1dd9d9f34563d93868af7fffc02f22d6c65b83a1 (diff)
downloadbuildroot-bba2fd540bc211bbcea1ad1dfc552fe32021097d.tar.gz
buildroot-bba2fd540bc211bbcea1ad1dfc552fe32021097d.tar.bz2
php: fix pdo sqlite compilation with !BR2_LARGEFILE
Similar fix as with the sqlite package. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/php/php.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/php/php.mk b/package/php/php.mk
index 2668774..eaf39c3 100644
--- a/package/php/php.mk
+++ b/package/php/php.mk
@@ -156,6 +156,9 @@ else
PHP_CONF_OPT += --with-pdo-sqlite
endif
PHP_CONF_ENV += CFLAGS+=" -DSQLITE_OMIT_LOAD_EXTENSION"
+ifneq ($(BR2_LARGEFILE),y)
+ PHP_CONF_ENV += CFLAGS+=" -DSQLITE_DISABLE_LFS"
+endif
endif
ifeq ($(BR2_PACKAGE_PHP_EXT_PDO_MYSQL),y)
PHP_CONF_OPT += --with-pdo-mysql=$(STAGING_DIR)/usr