kumquat-buildroot/package/php-apcu/php-apcu.mk
Fabrice Fontaine 67126ef063 package/php-apcu: fix build without __sync_*_4 intrinsics
Fix the following build failure raised since the addition of the package
in commit 8ddeeffa18:

configure: error: Compiler does not support atomics

--enable-apcu-rwlocks can't be used until
https://github.com/krakjoe/apcu/pull/430 is merged (and autoreconf does
not work either)

Fixes:
 - http://autobuild.buildroot.org/results/efa/efa3b4406f87a1e9521b66f392a6fa19ac01f0cd/build-end.log

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2022-02-01 22:23:48 +01:00

30 lines
810 B
Makefile

################################################################################
#
# php-apcu
#
################################################################################
PHP_APCU_VERSION = 5.1.20
PHP_APCU_SITE = http://pecl.php.net/get
PHP_APCU_SOURCE = apcu-$(PHP_APCU_VERSION).tgz
PHP_APCU_LICENSE = PHP-3.01
PHP_APCU_LICENSE_FILES = LICENSE
PHP_APCU_DEPENDENCIES = php host-autoconf
PHP_APCU_CONF_OPTS = \
--with-php-config=$(STAGING_DIR)/usr/bin/php-config
define PHP_APCU_PHPIZE
(cd $(@D); \
PHP_AUTOCONF=$(HOST_DIR)/usr/bin/autoconf \
PHP_AUTOHEADER=$(HOST_DIR)/usr/bin/autoheader \
$(STAGING_DIR)/usr/bin/phpize)
endef
PHP_APCU_PRE_CONFIGURE_HOOKS += PHP_APCU_PHPIZE
ifeq ($(BR2_TOOLCHAIN_HAS_SYNC_4),)
PHP_APCU_CONF_OPTS += --disable-apcu-rwlocks
endif
$(eval $(autotools-package))