git: 59a8beae54c5 - main - lang/ocaml: Unbreak on aarch64

From: Mikael Urankar <mikael_at_FreeBSD.org>
Date: Tue, 19 Apr 2022 08:58:10 UTC
The branch main has been updated by mikael:

URL: https://cgit.FreeBSD.org/ports/commit/?id=59a8beae54c5ba85b02ee24d9613211b701d4042

commit 59a8beae54c5ba85b02ee24d9613211b701d4042
Author:     Mikael Urankar <mikael@FreeBSD.org>
AuthorDate: 2022-04-19 08:50:42 +0000
Commit:     Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2022-04-19 08:58:07 +0000

    lang/ocaml: Unbreak on aarch64
    
    Enable profiling on aarch64
    
    Approved by:    portmgr (build fix blanket)
---
 lang/ocaml/Makefile              | 1 -
 lang/ocaml/files/patch-configure | 5 +++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lang/ocaml/Makefile b/lang/ocaml/Makefile
index 792a5a26664c..15f40a121325 100644
--- a/lang/ocaml/Makefile
+++ b/lang/ocaml/Makefile
@@ -17,7 +17,6 @@ LICENSE_NAME_QPL10=	Q Public License, Version 1.0
 LICENSE_FILE_QPL10=	${WRKSRC}/LICENSE
 LICENSE_PERMS_QPL10=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 
-BROKEN_aarch64=		Does not build: sh: as: not found
 BROKEN_riscv64=		fails to build: hasgot.c:3:12: use of undeclared identifier 'secure_getenv'
 BROKEN_sparc64=	No rule to make target 'none.o', needed by 'libasmrun.a'
 BROKEN_mips64=	No ASM support
diff --git a/lang/ocaml/files/patch-configure b/lang/ocaml/files/patch-configure
index b7be1fa6c6ba..df53ede3357f 100644
--- a/lang/ocaml/files/patch-configure
+++ b/lang/ocaml/files/patch-configure
@@ -43,8 +43,8 @@
    x86_64-*-cygwin*)             arch=amd64; system=cygwin;;
  esac
  
-@@ -1051,10 +1059,12 @@ case "$arch,$system" in
-     case "$nativecc" in gcc*) ;; *) cc_profile='-xpg';; esac;;
+@@ -1086,10 +1094,13 @@ case "$arch,$system" in
+   i386,macosx) profiling='true';;
    amd64,linux) profiling='true';;
    amd64,openbsd) profiling='true';;
 +  amd64,dragonfly) profiling='true';;
@@ -52,6 +52,7 @@
    amd64,netbsd) profiling='true';;
    arm,netbsd) profiling='true';;
    amd64,gnu) profiling='true';;
++  arm64,freebsd) profiling='true';;
 +  arm,freebsd) profiling='true';;
    arm,linux*) profiling='true';;
    power,elf) profiling='true';;