Browse Source

php: fix pdo sqlite compilation with !BR2_LARGEFILE

Similar fix as with the sqlite package.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Peter Korsgaard 15 years ago
parent
commit
bba2fd540b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      package/php/php.mk

+ 3 - 0
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