1ceb81
diff -up ./sapi/embed/config.m4.embed ./sapi/embed/config.m4
1ceb81
--- ./sapi/embed/config.m4.embed	2020-07-07 13:51:05.879764972 +0200
1ceb81
+++ ./sapi/embed/config.m4	2020-07-07 13:52:50.128412148 +0200
1ceb81
@@ -12,7 +12,8 @@ if test "$PHP_EMBED" != "no"; then
1ceb81
     yes|shared)
1ceb81
       LIBPHP_CFLAGS="-shared"
1ceb81
       PHP_EMBED_TYPE=shared
1ceb81
-      INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)\$(prefix)/lib"
1ceb81
+      EXTRA_LDFLAGS="$EXTRA_LDFLAGS -release \$(PHP_MAJOR_VERSION).\$(PHP_MINOR_VERSION)"
1ceb81
+      INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(libdir); \$(LIBTOOL) --mode=install \$(INSTALL) -m 0755 \$(OVERALL_TARGET) \$(INSTALL_ROOT)\$(libdir)"
1ceb81
       ;;
1ceb81
     static)
1ceb81
       LIBPHP_CFLAGS="-static"
1ceb81
diff -up ./scripts/php-config.in.embed ./scripts/php-config.in
1ceb81
--- ./scripts/php-config.in.embed	2020-07-07 12:54:42.000000000 +0200
1ceb81
+++ ./scripts/php-config.in	2020-07-07 13:51:05.880764968 +0200
1ceb81
@@ -18,7 +18,7 @@ exe_extension="@EXEEXT@"
1ceb81
 php_cli_binary=NONE
1ceb81
 php_cgi_binary=NONE
1ceb81
 configure_options="@CONFIGURE_OPTIONS@"
1ceb81
-php_sapis="@PHP_INSTALLED_SAPIS@"
1ceb81
+php_sapis="apache2handler litespeed fpm phpdbg @PHP_INSTALLED_SAPIS@"
1ceb81
 ini_dir="@EXPANDED_PHP_CONFIG_FILE_SCAN_DIR@"
1ceb81
 ini_path="@EXPANDED_PHP_CONFIG_FILE_PATH@"
1ceb81