Blame SOURCES/php-5.6.3-embed.patch

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