From b9e143372ced0d61f5942ff2b9a72cdb40a395d3 Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Tue, 10 Apr 2012 12:02:39 +0100 Subject: [PATCH] copy dlls when cross building --- build-devkit.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build-devkit.sh b/build-devkit.sh index 794f8b0..173c316 100755 --- a/build-devkit.sh +++ b/build-devkit.sh @@ -244,6 +244,15 @@ if [ -f $scriptdir/build-gcc.sh ]; then . $scriptdir/build-gcc.sh || { echo "Err if [ -f $scriptdir/build-tools.sh ]; then . $scriptdir/build-tools.sh || { echo "Error building tools"; exit 1; }; cd $BUILDSCRIPTDIR; fi if [ -f $scriptdir/build-crtls.sh ]; then . $scriptdir/build-crtls.sh || { echo "Error building crtls"; exit 1; }; cd $BUILDSCRIPTDIR; fi +if [ $CROSSBUILD="i686-w64-mingw32" ]; then + if [ $VERSION -ne 3 ]; then + cp -v /opt/i686-w64-mingw32/mingw/lib/FreeImage.dll $prefix/bin + fi + cp -v /opt/i686-w64-mingw32/mingw/lib/libstdc++-6.dll \ + /opt/i686-w64-mingw32/mingw/lib/libgcc_s_sjlj-1.dll \ + $prefix/bin +fi + echo "stripping installed binaries" . ./strip_bins.sh