Browse files

Copy GCC dlls to Python folder when python mode.

  • Loading branch information...
1 parent ead6b49 commit fa0ccc82c2d45656498c3e1d366dd9b7b682d9d8 @Alexpux Alexpux committed Oct 4, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0 scripts/3rdparty-post.sh
View
8 scripts/3rdparty-post.sh
@@ -43,6 +43,14 @@ function python_deps_post {
cp -f ${_dlls[@]} $PREFIX/opt/bin/ >/dev/null 2>&1
} || {
cp -f ${_dlls[@]} $PREFIX/bin/ >/dev/null 2>&1
+ local _toolchain_path=$(eval "echo \${${BUILD_ARCHITECTURE}_HOST_MINGW_PATH}")
+ local _gcc_dll=( $(find $_toolchain_path/bin -type f \
+ -name libstdc++*.dll -o \
+ -name libgcc*.dll -o \
+ -name libwinpthread*.dll) )
+ [[ ${#_gcc_dll[@]} >0 ]] && {
+ cp -f ${_gcc_dll[@]} $PREFIX/bin/ >/dev/null 2>&1
+ }
}
}
touch $BUILDS_DIR/3rdparty-post.marker

0 comments on commit fa0ccc8

Please sign in to comment.