php: fix pdo sqlite compilation with !BR2_LARGEFILE
authorPeter Korsgaard <jacmet@sunsite.dk>
Mon, 23 Nov 2009 13:25:24 +0000 (14:25 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 23 Nov 2009 13:25:24 +0000 (14:25 +0100)
Similar fix as with the sqlite package.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/php/php.mk

index 2668774d3198ca6eef6b3955ff57f9485d159142..eaf39c36a8976890e8310a931dddc6485a18a3d7 100644 (file)
@@ -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