6cb53d
--- php-5.6.3/sapi/embed/config.m4.embed
6cb53d
+++ php-5.6.3/sapi/embed/config.m4
6cb53d
@@ -12,7 +12,8 @@ if test "$PHP_EMBED" != "no"; then
6cb53d
   case "$PHP_EMBED" in
6cb53d
     yes|shared)
6cb53d
       PHP_EMBED_TYPE=shared
6cb53d
-      INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)\$(prefix)/lib"
6cb53d
+      EXTRA_LDFLAGS="$EXTRA_LDFLAGS -release \$(PHP_MAJOR_VERSION).\$(PHP_MINOR_VERSION)"
6cb53d
+      INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(libdir); \$(LIBTOOL) --mode=install \$(INSTALL) -m 0755 \$(OVERALL_TARGET) \$(INSTALL_ROOT)\$(libdir)"
6cb53d
       ;;
6cb53d
     static)
6cb53d
       PHP_EMBED_TYPE=static
6cb53d
diff -up php-5.5.30/scripts/php-config.in.old php-5.5.30/scripts/php-config.in
6cb53d
--- php-5.5.30/scripts/php-config.in.old	2015-10-19 15:17:31.944747715 +0200
6cb53d
+++ php-5.5.30/scripts/php-config.in	2015-10-19 15:17:58.278858083 +0200
6cb53d
@@ -18,7 +18,7 @@ exe_extension="@EXEEXT@"
6cb53d
 php_cli_binary=NONE
6cb53d
 php_cgi_binary=NONE
6cb53d
 configure_options="@CONFIGURE_OPTIONS@"
6cb53d
-php_sapis="@PHP_INSTALLED_SAPIS@"
b16a9d
+php_sapis="apache2handler embed fpm phpdbg @PHP_INSTALLED_SAPIS@"
6cb53d
 
6cb53d
 # Set php_cli_binary and php_cgi_binary if available
6cb53d
 for sapi in $php_sapis; do