]> granicus.if.org Git - php/commitdiff
build ext/spl and ext/reflection as static (fixes #38556)
authorAntony Dovgal <tony2001@php.net>
Wed, 23 Aug 2006 09:47:07 +0000 (09:47 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 23 Aug 2006 09:47:07 +0000 (09:47 +0000)
ext/reflection/config.m4
ext/spl/config.m4

index 69044d16487c7f0d6aefa79605a814c150350f97..c8a8d3d7158a95f9944e7853955f6e66bd8ce768 100755 (executable)
@@ -5,9 +5,6 @@ PHP_ARG_ENABLE(reflection, whether to enable reflection support,
 [  --disable-reflection    Disable reflection support], yes, no)
 
 if test "$PHP_REFLECTION" != "no"; then
-  if test "$ext_shared" = "yes"; then
-    AC_MSG_ERROR(Cannot build reflection as a shared module)
-  fi
   AC_DEFINE(HAVE_REFLECTION, 1, [Whether Reflection is enabled])
-  PHP_NEW_EXTENSION(reflection, php_reflection.c)
+  PHP_NEW_EXTENSION(reflection, php_reflection.c, no)
 fi
index c33dd0a6ffd50b48862c10f834ff5657366c15b9..1fdcbe97bb85d7af505dea19845d6e5a3d616baa 100755 (executable)
@@ -5,9 +5,6 @@ PHP_ARG_ENABLE(spl, enable SPL suppport,
 [  --disable-spl           Disable Standard PHP Library], yes)
 
 if test "$PHP_SPL" != "no"; then
-  if test "$ext_shared" = "yes"; then
-    AC_MSG_ERROR(Cannot build SPL as a shared module)
-  fi
   AC_MSG_CHECKING(whether zend_object_value is packed)
   old_CPPFLAGS=$CPPFLAGS
   CPPFLAGS="$INCLUDES -I$abs_srcdir $CPPFLAGS"
@@ -31,5 +28,5 @@ int main(int argc, char **argv) {
   fi
   AC_DEFINE_UNQUOTED(HAVE_PACKED_OBJECT_VALUE, $ac_result, [Whether struct _zend_object_value is packed])
   AC_DEFINE(HAVE_SPL, 1, [Whether you want SPL (Standard PHP Library) support]) 
-  PHP_NEW_EXTENSION(spl, php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_sxe.c spl_exceptions.c spl_observer.c, $ext_shared)
+  PHP_NEW_EXTENSION(spl, php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_sxe.c spl_exceptions.c spl_observer.c, no)
 fi