Skip to content

Commit

Permalink
Fixing mysql export lib for 32 bits build
Browse files Browse the repository at this point in the history
  • Loading branch information
rupor-github committed Jan 1, 2016
1 parent 169928a commit 8c4a8fa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions get-mysql-win.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ for _mingw in ${MINGW_INSTALLS}; do
case ${_mingw} in
mingw32)
arch=win32
_msystem=MINGW32
;;
mingw64)
arch=winx64
_msystem=MINGW64
;;
*)
echo "Unsupported environment!"
Expand All @@ -42,6 +44,9 @@ for _mingw in ${MINGW_INSTALLS}; do
7z x mysql-${ver_major}.${ver_minor}-${arch}.zip \*/include \*/lib/libmysqld.dll \*/share/english/errmsg.sys

(
export MSYSTEM=${_msystem}
export PATH=/${_mingw}/bin:$(echo $PATH | tr ':' '\n' | awk '$0 != "/opt/bin"' | paste -sd:)

cd mysql-${ver_major}.${ver_minor}-${arch}
cd lib
for dll in *.dll; do
Expand Down

0 comments on commit 8c4a8fa

Please sign in to comment.