From 1d4081dd4c43ab51d8a6393c0c6c57ba9a79b80c Mon Sep 17 00:00:00 2001 From: Michael Heimpold Date: Sun, 10 Feb 2019 21:45:16 +0100 Subject: [PATCH] php7: fix cross compiling patch (fixes #8166) Fixes: e148924a4 ("php7: update to 7.2.15") Signed-off-by: Michael Heimpold --- .../1003-Fix-dl-cross-compiling-issue.patch | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/lang/php7/patches/1003-Fix-dl-cross-compiling-issue.patch b/lang/php7/patches/1003-Fix-dl-cross-compiling-issue.patch index 951b32573e..075a98354c 100644 --- a/lang/php7/patches/1003-Fix-dl-cross-compiling-issue.patch +++ b/lang/php7/patches/1003-Fix-dl-cross-compiling-issue.patch @@ -27,16 +27,14 @@ PHP_NEW_EXTENSION(fileinfo, fileinfo.c $libmagic_sources, $ext_shared,,-I@ext_srcdir@/libmagic) --- a/ext/opcache/config.m4 +++ b/ext/opcache/config.m4 -@@ -261,7 +261,11 @@ AC_TRY_RUN([ - ], [ - flock_type=linux - AC_DEFINE([HAVE_FLOCK_LINUX], [], [Struct flock is Linux-type]) --], []) -+], [ -+ dnl cross-compiling; assume Linux -+ flock_type=linux -+ AC_DEFINE([HAVE_FLOCK_LINUX], [], [Struct flock is Linux-type]) -+]) - fi +@@ -232,6 +232,10 @@ int main() { + flock_type=unknown + AC_MSG_CHECKING(for struct flock layout) ++dnl cross-compiling for Linux ++flock_type=linux ++AC_DEFINE([HAVE_FLOCK_LINUX], [], [Struct flock is Linux-type]) ++ if test "$flock_type" = "unknown"; then + AC_TRY_RUN([ + #include -- 2.30.2