blob: 1dd1b014e009f5cd8ab066b70296dbf31aaea23d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#!/bin/sh
if [ ! -r "/usr/i686-pc-mingw32/lib/libssl.a" ]; then
echo "Error: install OpenSSL as instructed by" \
"docs/backup/mingw_build.txt" >&2
exit 2
fi
if [ ! -r "/usr/i686-pc-mingw32/lib/libpcreposix.a" \
-o ! -r "/usr/i686-pc-mingw32/lib/libpcre.a" \
-o ! -r "/usr/i686-pc-mingw32/include/regex.h" ]; then
echo "Error: install PCRE as instructed by" \
"docs/backup/mingw_build.txt" >&2
exit 2
fi
export CXX="g++ -mno-cygwin"
export LD="g++ -mno-cygwin"
export CFLAGS="-mno-cygwin -mthreads"
export CXXFLAGS="-mno-cygwin -mthreads"
export LDFLAGS="-mno-cygwin -mthreads"
export LIBS="-lcrypto -lws2_32 -lgdi32"
if [ ! -x "configure" ]; then
if ! ./bootstrap; then
echo "Error: bootstrap failed, aborting." >&2
exit 1
fi
fi
if ! ./configure --target=i686-pc-mingw32; then
echo "Error: configure failed, aborting." >&2
exit 1
fi
exit 0
|