New patches from Fedora.
[fedora-mingw.git] / ocaml / mingw32-ocaml-3.11.0+beta1-disable-cmxs.patch
1 I couldn't get *.cmxs files to build in the cross-compiler.  This
2 patch disables them.
3
4 diff --exclude _build -urN ocaml-3.11.0+beta1.orig/otherlibs/Makefile.shared ocaml-3.11.0+beta1.mingw/otherlibs/Makefile.shared
5 --- ocaml-3.11.0+beta1.orig/otherlibs/Makefile.shared   2008-07-15 16:31:32.000000000 +0100
6 +++ ocaml-3.11.0+beta1.mingw/otherlibs/Makefile.shared  2008-11-15 15:31:48.000000000 +0000
7 @@ -42,7 +42,8 @@
8  
9  all: lib$(CLIBNAME).$(A) $(LIBNAME).cma $(CMIFILES)
10  
11 -allopt: lib$(CLIBNAME).$(A) $(LIBNAME).cmxa $(LIBNAME).$(CMXS) $(CMIFILES)
12 +allopt: lib$(CLIBNAME).$(A) $(LIBNAME).cmxa $(CMIFILES)
13 +# $(LIBNAME).$(CMXS)
14  
15  $(LIBNAME).cma: $(CAMLOBJS)
16         $(MKLIB) -o $(LIBNAME) -oc $(CLIBNAME) -ocamlc '$(CAMLC)' -linkall $(CAMLOBJS) $(LINKOPTS)
17 @@ -50,8 +51,8 @@
18  $(LIBNAME).cmxa: $(CAMLOBJS_NAT)
19         $(MKLIB) -o $(LIBNAME) -oc $(CLIBNAME) -ocamlopt '$(CAMLOPT)' -linkall $(CAMLOBJS_NAT) $(LINKOPTS)
20  
21 -$(LIBNAME).cmxs: $(LIBNAME).cmxa lib$(CLIBNAME).$(A)
22 -       $(CAMLOPT) -shared -o $(LIBNAME).cmxs -I . $(LIBNAME).cmxa
23 +#$(LIBNAME).cmxs: $(LIBNAME).cmxa lib$(CLIBNAME).$(A)
24 +#      $(CAMLOPT) -shared -o $(LIBNAME).cmxs -I . $(LIBNAME).cmxa
25  
26  lib$(CLIBNAME).$(A): $(COBJS)
27         $(MKLIB) -oc $(CLIBNAME) $(COBJS) $(LDOPTS)