mirror of
https://github.com/php/php-src.git
synced 2026-04-25 17:08:14 +02:00
Make posix module buildable as shared module
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
|
||||
LTLIBRARY_NAME = libposix.la
|
||||
LTLIBRARY_SOURCES = posix.c
|
||||
LTLIBRARY_SHARED_NAME = posix.la
|
||||
|
||||
include $(top_srcdir)/build/dynlib.mk
|
||||
|
||||
|
||||
+4
-9
@@ -2,17 +2,12 @@ dnl $Id$
|
||||
dnl config.m4 for extension posix
|
||||
dnl don't forget to call PHP_EXTENSION(posix)
|
||||
|
||||
AC_ARG_ENABLE(posix,
|
||||
[ --disable-posix Disable POSIX-like functions],[
|
||||
PHP_POSIX=$enableval
|
||||
],[
|
||||
PHP_POSIX=yes
|
||||
])
|
||||
|
||||
AC_MSG_CHECKING(whether to include POSIX-like functions)
|
||||
AC_MSG_RESULT($PHP_POSIX)
|
||||
|
||||
PHP_ARG_ENABLE(posix,whether to include POSIX-like functions,
|
||||
[ --disable-posix Disable POSIX-like functions], yes)
|
||||
|
||||
if test "$PHP_POSIX" = "yes"; then
|
||||
AC_DEFINE(HAVE_POSIX, 1, [whether to include POSIX-like functions])
|
||||
PHP_EXTENSION(posix)
|
||||
PHP_EXTENSION(posix, $ext_shared)
|
||||
fi
|
||||
|
||||
+1
-1
@@ -130,7 +130,7 @@ zend_module_entry posix_module_entry = {
|
||||
};
|
||||
|
||||
#ifdef COMPILE_DL
|
||||
DLEXPORT zend_module_entry *get_module(void) { return &posix__module_entry; }
|
||||
DLEXPORT zend_module_entry *get_module(void) { return &posix_module_entry; }
|
||||
#endif
|
||||
|
||||
static PHP_MINFO_FUNCTION(posix)
|
||||
|
||||
Reference in New Issue
Block a user