mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
31 lines
1.3 KiB
Diff
31 lines
1.3 KiB
Diff
Patch-Source: https://github.com/krakjoe/apcu/commit/103bb842f4dc5e9a52137277ddfb12937b30c3cd
|
|
From 103bb842f4dc5e9a52137277ddfb12937b30c3cd Mon Sep 17 00:00:00 2001
|
|
From: Peter Kokot <peterkokot@gmail.com>
|
|
Date: Sat, 31 Aug 2024 19:12:49 +0200
|
|
Subject: [PATCH] Autotools: Replace APCU_CFLAGS Makefile variable with shell
|
|
variable
|
|
|
|
This replaces the "hacky" Makefile variable usage in config.m4 with a
|
|
regular shell variable.
|
|
|
|
Issue initially noted at https://github.com/php/php-src/pull/15642
|
|
---
|
|
config.m4 | 3 +--
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
diff --git a/config.m4 b/config.m4
|
|
index a6e5c991..2b8782a7 100644
|
|
--- a/config.m4
|
|
+++ b/config.m4
|
|
@@ -246,9 +246,8 @@ if test "$PHP_APCU" != "no"; then
|
|
apc_persist.c"
|
|
|
|
PHP_CHECK_LIBRARY(rt, shm_open, [PHP_ADD_LIBRARY(rt,,APCU_SHARED_LIBADD)])
|
|
- PHP_NEW_EXTENSION(apcu, $apc_sources, $ext_shared,, \\$(APCU_CFLAGS))
|
|
+ PHP_NEW_EXTENSION([apcu], [$apc_sources], [$ext_shared],, [$APCU_CFLAGS])
|
|
PHP_SUBST(APCU_SHARED_LIBADD)
|
|
- PHP_SUBST(APCU_CFLAGS)
|
|
PHP_SUBST(PHP_LDFLAGS)
|
|
PHP_INSTALL_HEADERS(ext/apcu, [php_apc.h apc.h apc_api.h apc_cache.h apc_globals.h apc_iterator.h apc_lock.h apc_mutex.h apc_sma.h apc_serializer.h apc_stack.h apc_arginfo.h php_apc_legacy_arginfo.h])
|
|
AC_DEFINE(HAVE_APCU, 1, [ ])
|