Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
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' ...
- Loading branch information
@@ -1501,7 +1501,8 @@ let configure_makefile t = | ||
append oc "\tld -d -static -nostdlib --start-group \\\n\ | ||
\t $(shell pkg-config --static --libs openlibm libminios) \\\n\ | ||
\t _build/main.native.o %s/libocaml.a \\\n\ | ||
\t %s/libxencaml.a --end-group -o mir-%s.xen" | ||
\t %s/libxencaml.a --end-group \\\n\ | ||
\t $(shell gcc -print-libgcc-file-name) -o mir-%s.xen" | ||
This comment has been minimized.
This comment has been minimized.
talex5
Author
Contributor
|
||
lib lib t.name; | ||
| `Unix -> | ||
append oc "build: main.native"; | ||
can we contain linking of libgcc.only on arm? (my local test on amd64 to remove this line from the Makefile resulted in a working xen MirageOS unikernel)