1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Autotools: Enhance appending -lrt (#15719)

If the opcache extension would be built statically one day this also
takes care of this to make the check more ubiquitous.
This commit is contained in:
Peter Kokot
2024-09-04 00:43:21 +02:00
committed by GitHub
parent 53cb89670c
commit 9a9e178328

View File

@@ -313,16 +313,16 @@ int main(void) {
[php_cv_shm_mmap_posix=no],
[php_cv_shm_mmap_posix=no])
])
AS_VAR_IF([php_cv_shm_mmap_posix], [yes], [
AS_VAR_IF([ac_cv_search_shm_open], ["none required"],,
[OPCACHE_SHARED_LIBADD="$OPCACHE_SHARED_LIBADD $ac_cv_search_shm_open"])
AC_DEFINE([HAVE_SHM_MMAP_POSIX], [1],
[Define to 1 if you have the POSIX mmap() SHM support.])
])
])
LIBS=$LIBS_save
AS_VAR_IF([php_cv_shm_mmap_posix], [yes], [
AC_DEFINE([HAVE_SHM_MMAP_POSIX], [1],
[Define to 1 if you have the POSIX mmap() SHM support.])
AS_CASE([$ac_cv_search_shm_open], ["none required"|no], [],
[PHP_EVAL_LIBLINE([$ac_cv_search_shm_open], [OPCACHE_SHARED_LIBADD])])
])
PHP_NEW_EXTENSION([opcache], m4_normalize([
shared_alloc_mmap.c
shared_alloc_posix.c