[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cluelessly Hacking OCaml 3.04



sorry for re-sending the port many times. I updated Makefile.

Makefile, I sent previously, referred to ${ARCH},
which is described in bsd.port.mk(5).  but
all Makefile in the port tree uses ${MACHINE_ARCH} provided by make(1).
I follow this style, and moved the line ".include <bsd.port.mk>"
to the bottom.

like this:
==================================================
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64"
ALL_TARGET=	world bootstrap opt
SED_PLIST=	|sed -e 's,^%%ocamlopt%%$$,bin/ocamlopt,'
.else
ALL_TARGET=	world bootstrap
SED_PLIST=	|sed -e '/^%%ocamlopt%%$$/d'
.endif
==================================================

README of ocaml-3.04 describes its native compiler supports sparc, and
I believe Ultra sparc is also supported.
but, if we have any error compiling native compiler,
"opt" target should be removed for sparc64 architecture.

for powerpc architecture, the native compiler supports MacOS X/powerpc.
so, OpenBSD/macppc can be also supported.

sparc64 and macppc testers, please try.

(I have only i386 architecture machine...)

-- yozo.

Attachment: ocaml-3.04.tar.gz
Description: ocaml-3.04.tar.gz