* [Buildroot] [PATCH 1/1] package/php: add libucontext optional dependency
@ 2024-03-05 15:40 Fabrice Fontaine
2024-03-06 14:18 ` Peter Korsgaard
2024-03-21 20:09 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2024-03-05 15:40 UTC (permalink / raw)
To: buildroot; +Cc: Bernd Kuhls, Fabrice Fontaine
Select libucontext if the toolchain doesn't support ucontext to allow
building php on musl
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/php/Config.in | 3 +++
package/php/php.mk | 5 +++++
2 files changed, 8 insertions(+)
diff --git a/package/php/Config.in b/package/php/Config.in
index 69b4268c1d..af8574ac75 100644
--- a/package/php/Config.in
+++ b/package/php/Config.in
@@ -9,6 +9,7 @@ config BR2_PACKAGE_PHP_ARCH_SUPPORTS
default y if BR2_RISCV_64
default y if BR2_s390x
default y if BR2_TOOLCHAIN_HAS_UCONTEXT
+ default y if BR2_PACKAGE_LIBUCONTEXT_ARCH_SUPPORTS
config BR2_PACKAGE_PHP
bool "php"
@@ -25,6 +26,8 @@ config BR2_PACKAGE_PHP
BR2_USE_MMU
select BR2_PACKAGE_PHP_SAPI_CLI if !BR2_USE_MMU
select BR2_PACKAGE_PCRE2
+ select BR2_PACKAGE_LIBUCONTEXT if \
+ BR2_PACKAGE_LIBUCONTEXT_ARCH_SUPPORTS
help
PHP is a widely-used general-purpose scripting
language that is especially suited for Web development
diff --git a/package/php/php.mk b/package/php/php.mk
index 4daf7f633d..28893be4c6 100644
--- a/package/php/php.mk
+++ b/package/php/php.mk
@@ -40,6 +40,11 @@ ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
PHP_EXTRA_LIBS += -latomic
endif
+ifeq ($(BR2_PACKAGE_LIBUCONTEXT),y)
+PHP_DEPENDENCIES += libucontext
+PHP_EXTRA_LIBS += -lucontext
+endif
+
ifeq ($(call qstrip,$(BR2_TARGET_LOCALTIME)),)
PHP_LOCALTIME = UTC
else
--
2.43.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-03-21 20:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-05 15:40 [Buildroot] [PATCH 1/1] package/php: add libucontext optional dependency Fabrice Fontaine
2024-03-06 14:18 ` Peter Korsgaard
2024-03-21 20:09 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox