Skip to contentSkip to conversation

package/php-apcu: fix build without __sync_*_4 intrinsics

PATCH Applied Fabrice Fontaine 2 participants 2 messages Jan 15, 2022 – Feb 1, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/php-apcu: fix build without __sync_*_4 intrinsics

Fix the following build failure raised since the addition of the package in commit 8ddeeffa186d8bce875ac713c1e71483c618842a:

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

---
 package/php-apcu/php-apcu.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/php-apcu/php-apcu.mk +4 -0
index ce59611d8f..3ac062e772 100644
@@ -22,4 +22,8 @@ define PHP_APCU_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))
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 5 lines · Fabrice Fontaine

Fix the following build failure raised since the addition of the package in commit 8ddeeffa186d8bce875ac713c1e71483c618842a:

configure: error: Compiler does not support atomics

Quoted 8 lines

--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

Applied to master, thanks.

Regards,
Arnout

Quoted 9 lines
---
  package/php-apcu/php-apcu.mk | 4 ++++
  1 file changed, 4 insertions(+)
package/php-apcu/php-apcu.mk +0 -0
index ce59611d8f..3ac062e772 100644

package/php-apcu/php-apcu.mk define PHP_APCU_PHPIZE · line 29

Quoted 8 lines
package/php-apcu/php-apcu.mk +4 -0
@@ -22,4 +22,8 @@ define PHP_APCU_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))

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot