File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ elif [[ $OS == "Msys" || $OS == "Cygwin" ]] ; then
47
47
export PATH=$PATH :/c/MinGW/bin/:/c/cygwin/bin/
48
48
export CC=" mingw32-gcc -m32"
49
49
export CXX=" mingw32-g++ -m32"
50
+ export TARGET_OS=" Windows"
50
51
OUTPUT_TAG=i686-mingw32
51
52
52
53
elif [[ $OS == " Darwin" ]] ; then
@@ -70,6 +71,16 @@ rm -rf avrdude-6.3 libusb-1.0.20 libusb-compat-0.1.5 libusb-win32-bin-1.2.6.0 li
70
71
./libelf-0.8.13.build.bash
71
72
./avrdude-6.3.build.bash
72
73
74
+ if [[ $CROSS_COMPILE_HOST == " i686-w64-mingw32" ]] ; then
75
+ # copy dependency libgcc_s_sjlj-1.dll into bin/ folder
76
+
77
+ # try to detect the location of libgcc_s_sjlj-1.dll
78
+ # (maybe there is better way... feel free to submit a patch!)
79
+ LTO_PATH=` i686-w64-mingw32-gcc -v 2>&1 | grep LTO | tr ' =' ' ' | awk " { print \\\$ 2; }" `
80
+ DLL_PATH=` dirname $LTO_PATH ` /libgcc_s_sjlj-1.dll
81
+ cp $DLL_PATH objdir/bin
82
+ fi
83
+
73
84
rm -f avrdude-${OUTPUT_VERSION} -${OUTPUT_TAG} .tar.bz2
74
85
cp -a objdir avrdude
75
86
tar -cjvf avrdude-${OUTPUT_VERSION} -${OUTPUT_TAG} .tar.bz2 avrdude
You can’t perform that action at this time.
0 commit comments