--with-config-file-path=/etc \
--localstatedir=/var \
+PHP_CFLAGS = $(TARGET_CFLAGS)
+
ifneq ($(BR2_PACKAGE_PHP_CLI),y)
PHP_CONF_OPT += --disable-cli
else
ifeq ($(BR2_PACKAGE_PHP_EXT_SQLITE),y)
PHP_CONF_OPT += --with-sqlite
ifneq ($(BR2_LARGEFILE),y)
- PHP_CONF_ENV += CFLAGS+=" -DSQLITE_DISABLE_LFS"
+ PHP_CFLAGS += -DSQLITE_DISABLE_LFS
endif
ifeq ($(BR2_PACKAGE_PHP_EXT_SQLITE_UTF8),y)
PHP_CONF_OPT += --enable-sqlite-utf8
else
PHP_CONF_OPT += --with-pdo-sqlite
endif
- PHP_CONF_ENV += CFLAGS+=" -DSQLITE_OMIT_LOAD_EXTENSION"
+ PHP_CFLAGS += -DSQLITE_OMIT_LOAD_EXTENSION
ifneq ($(BR2_LARGEFILE),y)
- PHP_CONF_ENV += CFLAGS+=" -DSQLITE_DISABLE_LFS"
+ PHP_CFLAGS += -DSQLITE_DISABLE_LFS
endif
endif
ifeq ($(BR2_PACKAGE_PHP_EXT_PDO_MYSQL),y)
rm -f $(TARGET_DIR)/usr/bin/php*
endef
+PHP_CONF_ENV += CFLAGS="$(PHP_CFLAGS)"
+
$(eval $(call AUTOTARGETS,package,php))