Skip to content

Commit

Permalink
Autotools: Replace APCU_CFLAGS Makefile variable with shell variable
Browse files Browse the repository at this point in the history
This replaces the "hacky" Makefile variable usage in config.m4 with a
regular shell variable.

Issue initially noted at php/php-src#15642
  • Loading branch information
petk authored and nikic committed Aug 31, 2024
1 parent 15766e6 commit 103bb84
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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, [ ])
Expand Down

0 comments on commit 103bb84

Please sign in to comment.