X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=ocaml-curses%2Fmingw32-ocaml-curses-0.1-build.patch;fp=ocaml-curses%2Fmingw32-ocaml-curses-0.1-build.patch;h=83cbeeb4af30a4d173eeb9c5a7f7663cf0e84ccf;hb=e35583101ceb908e40da1c0d1b3914215667e580;hp=0000000000000000000000000000000000000000;hpb=ea0e28f21db0424e38b19be2761fbec89600789d;p=fedora-mingw.git diff --git a/ocaml-curses/mingw32-ocaml-curses-0.1-build.patch b/ocaml-curses/mingw32-ocaml-curses-0.1-build.patch new file mode 100644 index 0000000..83cbeeb --- /dev/null +++ b/ocaml-curses/mingw32-ocaml-curses-0.1-build.patch @@ -0,0 +1,27 @@ +Split up the all and opt (native code) rules, and allow the curses +library to be specified explicitly. + +diff -ur mingw32-ocaml-curses-20020319.orig/curses/Makefile mingw32-ocaml-curses-20020319.mingw/curses/Makefile +--- mingw32-ocaml-curses-20020319.orig/curses/Makefile 2002-03-19 13:07:47.000000000 +0000 ++++ mingw32-ocaml-curses-20020319.mingw/curses/Makefile 2008-11-15 23:03:35.000000000 +0000 +@@ -5,15 +5,17 @@ + LFLAGS= + CPP=cpp + +-CURSES=ncurses ++CURSES=-lncurses + +-all: libmlcurses.a mlcurses.cma mlcurses.cmxa ++all: libmlcurses.a mlcurses.cma ++ ++opt: libmlcurses.a mlcurses.cmxa + + ml_curses.o: ml_curses.c functions.c + $(OCAMLC) -ccopt "$(CFLAGS)" -c $< + + libmlcurses.a: ml_curses.o +- $(OCAMLMKLIB) -o mlcurses $< -l$(CURSES) ++ $(OCAMLMKLIB) -o mlcurses $< $(CURSES) + + mlcurses.cma: curses.cmo + $(OCAMLMKLIB) -o mlcurses -linkall $^