-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
win-run-configure
34 lines (32 loc) · 1.21 KB
/
win-run-configure
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
#!/bin/sh
# This script uses MINGW_DIR variable passed from core-libvirt Makefile and initialized in root Makefile.windows
if [ ! -f configure.done ]
then
#CFLAGS=-I/include\ -g\ -ggdb\ -O0\ -march=x86_64 \
# --enable-debug=yes \
#LDFLAGS=-L/usr/lib \
CFLAGS=-I$MINGW_DIR/include \
./configure --prefix=$MINGW_DIR \
--host=x86_64-w64-mingw32 \
--build=x86_64-w64-mingw32 \
--enable-shared \
--without-xen \
--without-libvirtd \
--without-openvz \
--without-lxc \
--without-phyp \
--with-python \
-C \
|| exit 1
# Some settings are incorectly detected by configure and doesn't have
# option to override, so fix config.status directly:
# HAVE_PTHREAD_SIGMASK: mingw provides this as (dummy) #define, which isn't
# handled correctly by gnulib
# \\\\Lib\\\\: there are problems with number of escapes, so use '/' as it
# also works on windows
sed -e 's:\(HAVE_PTHREAD_SIGMASK.*\)1:\10:' \
-e 's:\\\\Lib\\\\:/Lib/:' \
-i config.status
./config.status
echo done > configure.done
fi