File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 9
9
# path to zip program
10
10
zip=
11
11
12
+ wine=
13
+
12
14
# options for configure
13
15
extraconfigureoptions=
14
16
compileflags=" -O2 -Wall -Wextra"
41
43
echo " Building native Windows executable on Linux"
42
44
if test x$zip = x; then
43
45
zip=zip
46
+ wine=$( which wine)
47
+ fi
48
+ if test x$wine = x; then
49
+ echo " Could not detect wine - please install wine-stable package."
50
+ exit 1;
44
51
fi
45
52
echo " Checking that mingw 32-bit gcc is installed/available"
46
53
if test -n " ` which i686-w64-mingw32-gcc` " ; then
@@ -109,9 +116,9 @@ if test -f "$tarball"; then
109
116
echo " Compiling (quietly)..."
110
117
make > build.log
111
118
echo " Simple check to see if swig.exe runs..."
112
- env LD_LIBRARY_PATH= PATH= ./swig.exe -version || exit 1
119
+ env LD_LIBRARY_PATH= PATH= $wine ./swig.exe -version || exit 1
113
120
echo " Simple check to see if ccache-swig.exe runs..."
114
- env LD_LIBRARY_PATH= PATH= ./CCache/ccache-swig.exe -V || exit 1
121
+ env LD_LIBRARY_PATH= PATH= $wine ./CCache/ccache-swig.exe -V || exit 1
115
122
echo " Creating $swigwinbasename .zip..."
116
123
cd ..
117
124
cp $swigbasename /swig.exe $swigwinbasename
You can’t perform that action at this time.
0 commit comments