mirror of
https://github.com/php/php-src.git
synced 2025-01-22 11:44:09 +08:00
Make calendar buildable as shared module
This commit is contained in:
parent
095e13632c
commit
4f5717d0a0
@ -1,5 +1,6 @@
|
||||
|
||||
LTLIBRARY_NAME = libcalendar.la
|
||||
LTLIBRARY_SOURCES = calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c
|
||||
LTLIBRARY_SHARED_NAME = calendar.la
|
||||
|
||||
include $(top_srcdir)/build/dynlib.mk
|
||||
|
@ -53,6 +53,10 @@ zend_module_entry calendar_module_entry = {
|
||||
STANDARD_MODULE_PROPERTIES,
|
||||
};
|
||||
|
||||
#ifdef COMPILE_DL_CALENDAR
|
||||
ZEND_GET_MODULE(calendar)
|
||||
#endif
|
||||
|
||||
PHP_MINIT_FUNCTION(calendar)
|
||||
{
|
||||
/*
|
||||
|
@ -5,5 +5,5 @@ PHP_ARG_ENABLE(calendar,whether to enable calendar conversion support,
|
||||
|
||||
if test "$PHP_CALENDAR" = "yes"; then
|
||||
AC_DEFINE(HAVE_CALENDAR,1,[ ])
|
||||
PHP_EXTENSION(calendar)
|
||||
PHP_EXTENSION(calendar, $ext_shared)
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user