From dd75eb67ed1d8c6ecbeb9a5101787f0637a72db3 Mon Sep 17 00:00:00 2001
From: unknown <kent@mysql.com/kent-amd64.(none)>
Date: Mon, 6 Aug 2007 08:28:16 +0200
Subject: [PATCH 1/2] make_win_bin_dist:   Copy embedded .pdb and static debug
 lib

scripts/make_win_bin_dist:
  Copy embedded .pdb and static debug lib
---
 scripts/make_win_bin_dist | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/scripts/make_win_bin_dist b/scripts/make_win_bin_dist
index 14ea77e3e0e..6b6342b268f 100755
--- a/scripts/make_win_bin_dist
+++ b/scripts/make_win_bin_dist
@@ -219,16 +219,22 @@ copy_embedded()
            $DESTDIR/include
   cp libmysqld/libmysqld.def           $DESTDIR/include/
   cp libmysqld/$TARGET/mysqlserver.lib $DESTDIR/Embedded/static/release/
+  cp libmysqld/$TARGET/mysqlserver.pdb $DESTDIR/Embedded/static/release/
   cp libmysqld/$TARGET/libmysqld.dll   $DESTDIR/Embedded/DLL/release/
   cp libmysqld/$TARGET/libmysqld.exp   $DESTDIR/Embedded/DLL/release/
   cp libmysqld/$TARGET/libmysqld.lib   $DESTDIR/Embedded/DLL/release/
+  cp libmysqld/$TARGET/libmysqld.pdb   $DESTDIR/Embedded/DLL/release/
 
   if [ x"$PACK_DEBUG" = x"" -a -f "libmysqld/debug/libmysqld.lib" -o \
        x"$PACK_DEBUG" = x"yes" ] ; then
-    mkdir -p $DESTDIR/Embedded/DLL/debug
+    mkdir -p $DESTDIR/Embedded/DLL/debug \
+             $DESTDIR/Embedded/static/debug
+    cp libmysqld/debug/mysqlserver.lib   $DESTDIR/Embedded/DLL/debug/
+    cp libmysqld/debug/mysqlserver.pdb   $DESTDIR/Embedded/DLL/debug/
     cp libmysqld/debug/libmysqld.dll     $DESTDIR/Embedded/DLL/debug/
     cp libmysqld/debug/libmysqld.exp     $DESTDIR/Embedded/DLL/debug/
     cp libmysqld/debug/libmysqld.lib     $DESTDIR/Embedded/DLL/debug/
+    cp libmysqld/debug/libmysqld.pdb     $DESTDIR/Embedded/DLL/debug/
   fi
 }
 

From e20e0dc48792c5eb4e27521975234cc815dc8ad1 Mon Sep 17 00:00:00 2001
From: unknown <kent@mysql.com/kent-amd64.(none)>
Date: Mon, 6 Aug 2007 08:31:09 +0200
Subject: [PATCH 2/2] make_win_bin_dist:   Corrected install path

scripts/make_win_bin_dist:
  Corrected install path
---
 scripts/make_win_bin_dist | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/make_win_bin_dist b/scripts/make_win_bin_dist
index 6b6342b268f..849226c94ea 100755
--- a/scripts/make_win_bin_dist
+++ b/scripts/make_win_bin_dist
@@ -229,8 +229,8 @@ copy_embedded()
        x"$PACK_DEBUG" = x"yes" ] ; then
     mkdir -p $DESTDIR/Embedded/DLL/debug \
              $DESTDIR/Embedded/static/debug
-    cp libmysqld/debug/mysqlserver.lib   $DESTDIR/Embedded/DLL/debug/
-    cp libmysqld/debug/mysqlserver.pdb   $DESTDIR/Embedded/DLL/debug/
+    cp libmysqld/debug/mysqlserver.lib   $DESTDIR/Embedded/static/debug/
+    cp libmysqld/debug/mysqlserver.pdb   $DESTDIR/Embedded/static/debug/
     cp libmysqld/debug/libmysqld.dll     $DESTDIR/Embedded/DLL/debug/
     cp libmysqld/debug/libmysqld.exp     $DESTDIR/Embedded/DLL/debug/
     cp libmysqld/debug/libmysqld.lib     $DESTDIR/Embedded/DLL/debug/