Skip to content
This repository has been archived by the owner on Nov 28, 2017. It is now read-only.

Commit

Permalink
Merge pull request #13 from djs55/add-manual-build
Browse files Browse the repository at this point in the history
Fix build on OCaml 4.00.1
  • Loading branch information
djs55 committed Jul 16, 2014
2 parents edf26ac + b8eb69e commit ed6dede
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
0.2 (16-Jul-2014)
- Add manual build script for OCaml 4.00.1

0.1 (16-Jul-2014)
- Initial version

16 changes: 16 additions & 0 deletions manual-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
ocamlfind ocamldep -package vchan -package testvmlib -package mirage-types.lwt -package mirage-console-xen -package mirage-block-xen.front -package lwt.syntax -syntax camlp4o -modules main.ml > main.ml.depends
ocamlfind ocamldep -package vchan -package testvmlib -package mirage-types.lwt -package mirage-console-xen -package mirage-block-xen.front -package lwt.syntax -syntax camlp4o -modules test.ml > test.ml.depends
ocamlfind ocamldep -package vchan -package testvmlib -package mirage-types.lwt -package mirage-console-xen -package mirage-block-xen.front -package lwt.syntax -syntax camlp4o -modules test_impl.ml > test_impl.ml.depends
ocamlfind ocamlc -c -g -annot -bin-annot -principal -strict-sequence -package vchan -package testvmlib -package mirage-types.lwt -package mirage-console-xen -package mirage-block-xen.front -package lwt.syntax -syntax camlp4o -o test_impl.cmo test_impl.ml
ocamlfind ocamlc -c -g -annot -bin-annot -principal -strict-sequence -package vchan -package testvmlib -package mirage-types.lwt -package mirage-console-xen -package mirage-block-xen.front -package lwt.syntax -syntax camlp4o -o test.cmo test.ml
ocamlfind ocamlc -c -g -annot -bin-annot -principal -strict-sequence -package vchan -package testvmlib -package mirage-types.lwt -package mirage-console-xen -package mirage-block-xen.front -package lwt.syntax -syntax camlp4o -o main.cmo main.ml
ocamlfind ocamlopt -c -g -annot -bin-annot -principal -strict-sequence -package vchan -package testvmlib -package mirage-types.lwt -package mirage-console-xen -package mirage-block-xen.front -package lwt.syntax -syntax camlp4o -o test_impl.cmx test_impl.ml
ocamlfind ocamlopt -c -g -annot -bin-annot -principal -strict-sequence -package vchan -package testvmlib -package mirage-types.lwt -package mirage-console-xen -package mirage-block-xen.front -package lwt.syntax -syntax camlp4o -o test.cmx test.ml
ocamlfind ocamlopt -c -g -annot -bin-annot -principal -strict-sequence -package vchan -package testvmlib -package mirage-types.lwt -package mirage-console-xen -package mirage-block-xen.front -package lwt.syntax -syntax camlp4o -o main.cmx main.ml
ocamlfind ocamlopt -g -linkpkg -dontlink unix -output-obj -package vchan -package testvmlib -package mirage-types.lwt -package mirage-console-xen -package mirage-block-xen.front -package lwt.syntax -syntax camlp4o test_impl.cmx test.cmx main.cmx -o main.native.o

XEN_LIBDIR=$(ocamlfind query mirage-xen)
ld -d -nostdlib -m elf_x86_64 -T ${XEN_LIBDIR}/mirage-x86_64.lds ${XEN_LIBDIR}/x86_64.o \
main.native.o ${XEN_LIBDIR}/libocaml.a ${XEN_LIBDIR}/libxen.a \
${XEN_LIBDIR}/libxencaml.a ${XEN_LIBDIR}/libdiet.a ${XEN_LIBDIR}/libm.a \
${XEN_LIBDIR}/longjmp.o -o mir-test.xen

0 comments on commit ed6dede

Please sign in to comment.