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