smock: add --overwrite option
[fedora-mingw.git] / ocaml-libvirt / mingw32-ocaml-libvirt-0.4.4.2-build.patch
1 diff -ur ocaml-libvirt-0.4.4.2.orig/configure.ac ocaml-libvirt-0.4.4.2.mingw/configure.ac
2 --- ocaml-libvirt-0.4.4.2.orig/configure.ac     2008-07-09 12:51:58.000000000 +0100
3 +++ ocaml-libvirt-0.4.4.2.mingw/configure.ac    2008-11-16 17:42:16.000000000 +0000
4 @@ -296,6 +296,9 @@
5      fi
6  done
7  
8 +dnl Check for ranlib
9 +AC_CHECK_TOOL([RANLIB], [ranlib], [:])
10 +
11  dnl Summary.
12  echo "------------------------------------------------------------"
13  echo "Thanks for downloading" $PACKAGE_STRING
14 diff -ur ocaml-libvirt-0.4.4.2.orig/libvirt/Makefile.in ocaml-libvirt-0.4.4.2.mingw/libvirt/Makefile.in
15 --- ocaml-libvirt-0.4.4.2.orig/libvirt/Makefile.in      2008-07-09 12:51:41.000000000 +0100
16 +++ ocaml-libvirt-0.4.4.2.mingw/libvirt/Makefile.in     2008-11-16 17:42:45.000000000 +0000
17 @@ -17,6 +17,8 @@
18  
19  WIN32          = @WIN32@
20  
21 +CC             = @CC@
22 +
23  CFLAGS         = @CFLAGS@ \
24                    -I.. \
25                    -I"$(shell ocamlc -where)" \
26 @@ -29,6 +31,8 @@
27  OCAMLFIND      = @OCAMLFIND@
28  OCAMLMKLIB     = @OCAMLMKLIB@
29  
30 +RANLIB         = @RANLIB@
31 +
32  ifneq ($(OCAMLFIND),)
33  OCAMLCPACKAGES := -package unix
34  OCAMLCFLAGS    := -g
35 @@ -68,6 +72,7 @@
36  
37  mllibvirt.cmxa: libvirt_c.o $(OPTOBJS)
38         $(OCAMLMKLIB) -o mllibvirt $^ $(LDFLAGS) -lvirt
39 +       -$(RANLIB) mllibvirt.a libmllibvirt.a
40  
41  else
42  ifeq ($(WIN32),yes)