From 4e9c3e9396de9dab4faac9e24bc019958b383d66 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 31 Aug 2017 15:05:13 +0100 Subject: [PATCH] Copy dependencies of the core DLL in `nmake snap` for statically-compiled extensions when packaging builds --- win32/build/mkdist.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/win32/build/mkdist.php b/win32/build/mkdist.php index ca99b0dba9c..7fac172145f 100644 --- a/win32/build/mkdist.php +++ b/win32/build/mkdist.php @@ -209,7 +209,8 @@ function extract_file_from_tarball($pkg, $filename, $dest_dir) /* {{{ */ /* the core dll */ copy("$build_dir/php.exe", "$dist_dir/php.exe"); -copy("$build_dir/$phpdll", "$dist_dir/$phpdll"); +/* copy dll and its dependencies */ +copy_file_list($build_dir, "$dist_dir", [$phpdll]); /* and the .lib goes into dev */ $phplib = str_replace(".dll", ".lib", $phpdll);