aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-pecl-swoole/arch.patch
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2019-03-24 13:52:33 +0200
committerAndy Postnikov <apostnikov@gmail.com>2019-03-24 15:36:16 +0200
commit0c377b83868fecc7db71557d872046739540b408 (patch)
treef190c62e6616853406cccbf8cfd0d3e4dd4e2c98 /testing/php7-pecl-swoole/arch.patch
parentd880204f7b79e2820f0b7d2b70616fa2e461e3d4 (diff)
downloadaports-0c377b83868fecc7db71557d872046739540b408.tar.bz2
aports-0c377b83868fecc7db71557d872046739540b408.tar.xz
testing/php7-pecl-swoole: add arm patch to build aarch64 and arm*
Diffstat (limited to 'testing/php7-pecl-swoole/arch.patch')
-rw-r--r--testing/php7-pecl-swoole/arch.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/php7-pecl-swoole/arch.patch b/testing/php7-pecl-swoole/arch.patch
new file mode 100644
index 0000000000..802af23a33
--- /dev/null
+++ b/testing/php7-pecl-swoole/arch.patch
@@ -0,0 +1,16 @@
+diff --git a/config.m4 b/config.m4
+index 657072fd..84415bf4 100644
+--- a/config.m4
++++ b/config.m4
+@@ -526,9 +526,9 @@ if test "$PHP_SWOOLE" != "no"; then
+
+ AS_CASE([$host_cpu],
+ [x86_64*], [SW_CPU="x86_64"],
+- [x86*], [SW_CPU="x86"],
++ [i586*], [SW_CPU="x86"],
+ [arm*], [SW_CPU="arm"],
+- [arm64*], [SW_CPU="arm64"],
++ [aarch64*], [SW_CPU="arm64"],
+ [
+ SW_NO_USE_ASM_CONTEXT="yes"
+ AC_DEFINE([SW_NO_USE_ASM_CONTEXT], 1, [use boost asm context?])