Set stack unlimited.
[fedora-mingw.git] / ocaml-curses / mingw32-ocaml-curses-0.1-build.patch
1 Split up the all and opt (native code) rules, and allow the curses
2 library to be specified explicitly.
3
4 diff -ur mingw32-ocaml-curses-20020319.orig/curses/Makefile mingw32-ocaml-curses-20020319.mingw/curses/Makefile
5 --- mingw32-ocaml-curses-20020319.orig/curses/Makefile  2002-03-19 13:07:47.000000000 +0000
6 +++ mingw32-ocaml-curses-20020319.mingw/curses/Makefile 2008-11-15 23:03:35.000000000 +0000
7 @@ -5,15 +5,17 @@
8  LFLAGS=
9  CPP=cpp
10  
11 -CURSES=ncurses
12 +CURSES=-lncurses
13  
14 -all: libmlcurses.a mlcurses.cma mlcurses.cmxa
15 +all: libmlcurses.a mlcurses.cma
16 +
17 +opt: libmlcurses.a mlcurses.cmxa
18  
19  ml_curses.o: ml_curses.c functions.c
20         $(OCAMLC) -ccopt "$(CFLAGS)" -c $<
21  
22  libmlcurses.a: ml_curses.o
23 -       $(OCAMLMKLIB) -o mlcurses $< -l$(CURSES)
24 +       $(OCAMLMKLIB) -o mlcurses $< $(CURSES)
25  
26  mlcurses.cma: curses.cmo
27         $(OCAMLMKLIB) -o mlcurses -linkall $^