Skip to content

Commit c17f2f6

Browse files
committed
Link libgcc.a
This is needed on ARM. Without it, you get: _build/main.native.o: In function `.L104': camlinternalOO.o:(.text+0xb36c): undefined reference to `__aeabi_dcmpge' camlinternalOO.o:(.text+0xb3a0): undefined reference to `__aeabi_dadd' ...
1 parent ada8268 commit c17f2f6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ To work with Mirage, you'll need the following prerequisites installed:
2626

2727
* a working [OCaml](http://ocaml.org) compiler (4.00.1 or higher).
2828
* the [OPAM](https://opam.ocaml.org) source package manager (1.1.1 or higher).
29-
* a 64-bit Linux host to compile Xen kernels, or FreeBSD, OpenBSD or MacOS X
29+
* an x86\_64 or armel Linux host to compile Xen kernels, or FreeBSD, OpenBSD or MacOS X
3030
for the userlevel version.
3131

3232
There are three stages to using `mirage`:

lib/mirage.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1501,7 +1501,8 @@ let configure_makefile t =
15011501
append oc "\tld -d -static -nostdlib --start-group \\\n\
15021502
\t $(shell pkg-config --static --libs openlibm libminios) \\\n\
15031503
\t _build/main.native.o %s/libocaml.a \\\n\
1504-
\t %s/libxencaml.a --end-group -o mir-%s.xen"
1504+
\t %s/libxencaml.a --end-group \\\n\
1505+
\t $(shell gcc -print-libgcc-file-name) -o mir-%s.xen"
15051506
lib lib t.name;
15061507
| `Unix ->
15071508
append oc "build: main.native";

0 commit comments

Comments
 (0)