svn commit: r455175 - head/lang/ocaml
Mark Linimon
linimon at FreeBSD.org
Thu Nov 30 07:27:07 UTC 2017
Author: linimon
Date: Thu Nov 30 07:27:06 2017
New Revision: 455175
URL: https://svnweb.freebsd.org/changeset/ports/455175
Log:
Attempt to build on armv7 by generalizing from armv6 code.
Unfortanately it didn't build for me on armv7: perhaps it is a difference
in compiler. (It currently builds on armv6 on the freebsd.org cluster.)
So, this is a necessary but insufficient step.
Approved by: portmgr (tier-2 blanket)
Modified:
head/lang/ocaml/Makefile
Modified: head/lang/ocaml/Makefile
==============================================================================
--- head/lang/ocaml/Makefile Thu Nov 30 07:08:54 2017 (r455174)
+++ head/lang/ocaml/Makefile Thu Nov 30 07:27:06 2017 (r455175)
@@ -19,6 +19,7 @@ LICENSE_FILE_QPL10= ${WRKSRC}/LICENSE
LICENSE_PERMS_QPL10= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
BROKEN_aarch64= Does not build: No rule to make target aarch64.o, needed by libasmrun.a
+BROKEN_armv7= Does not build: hasgot.c: undefined reference to `tgetent'
BROKEN_powerpc64= Does not build: error: too few arguments to function gethostbyname_r
BROKEN_sparc64= ocamlc.opt seg-faults, please try to fix
BROKEN_mips64= No ASM support
@@ -68,7 +69,7 @@ PORTDOCS= htmlman ${DOCSDISTNAME}-refman.ps.gz ${DOCSD
PLIST_SUB+= DOC="@comment "
.endif
-.if ${ARCH} == armv6
+.if ${ARCH} == armv6 || ${ARCH} == armv7
CONFIGURE_ARGS+= -as "${AS} ${ASFLAGS} -meabi=5"
.else
CONFIGURE_ARGS+= -as "${AS} ${ASFLAGS}"
@@ -98,7 +99,7 @@ CONFIGURE_ARGS+=-no-graph
.include <bsd.port.pre.mk>
.include "${FILESDIR}/manfiles"
-OCAML_ARCH= ${ARCH:S/x86_64/amd64/:S/powerpc/power/:S/armv6/arm/}
+OCAML_ARCH= ${ARCH:S/x86_64/amd64/:S/powerpc/power/:C/armv.*/arm/}
.if defined(NO_PROFILE) || ${OCAML_ARCH:Mpower} || ${OCAML_ARCH:Mamd64}
More information about the svn-ports-all
mailing list