mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Add pcre as a configure step dependency to fileinfo (#15349)
The pcre is a required dependency in fileinfo extenstion. This marks it as a configure step dependency for consistency with other extensions and to have extensions properly sorted in the generated internal_functions* files.
This commit is contained in:
parent
693ec809b9
commit
634708a14f
2 changed files with 2 additions and 0 deletions
|
@ -41,6 +41,7 @@ if test "$PHP_FILEINFO" != "no"; then
|
|||
[$ext_shared],,
|
||||
[-I@ext_srcdir@/libmagic])
|
||||
PHP_ADD_BUILD_DIR([$ext_builddir/libmagic])
|
||||
PHP_ADD_EXTENSION_DEP(fileinfo, pcre)
|
||||
|
||||
AC_CHECK_FUNCS([utimes strndup])
|
||||
|
||||
|
|
|
@ -11,5 +11,6 @@ if (PHP_FILEINFO != 'no') {
|
|||
strcasestr.c buffer.c is_csv.c";
|
||||
|
||||
EXTENSION('fileinfo', 'fileinfo.c php_libmagic.c', true, "/I" + configure_module_dirname + "/libmagic /I" + configure_module_dirname);
|
||||
ADD_EXTENSION_DEP('fileinfo', 'pcre');
|
||||
ADD_SOURCES(configure_module_dirname + '\\libmagic', LIBMAGIC_SOURCES, "fileinfo");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue