git: 25bfd8147fec - main - devel/ocaml-lacaml: remove -march=native
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 19 Sep 2025 08:28:57 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=25bfd8147fec94070189e30b8a2ec71227d99974
commit 25bfd8147fec94070189e30b8a2ec71227d99974
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-09-18 19:52:00 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-09-19 08:25:55 +0000
devel/ocaml-lacaml: remove -march=native
An existing site patch tried to remove -march=native, but this failed
to be effective. Rework the patch so -march=native is never passed.
Approved by: portmgr (build fix blanket)
MFH: 2025Q3
---
devel/ocaml-lacaml/Makefile | 2 +-
devel/ocaml-lacaml/files/patch-src_config_discover.ml | 11 ++++++-----
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/devel/ocaml-lacaml/Makefile b/devel/ocaml-lacaml/Makefile
index e2217bd9d1a1..6e4a3e880f94 100644
--- a/devel/ocaml-lacaml/Makefile
+++ b/devel/ocaml-lacaml/Makefile
@@ -1,6 +1,6 @@
PORTNAME= lacaml
DISTVERSION= 11.0.10
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= devel
PKGNAMEPREFIX= ocaml-
diff --git a/devel/ocaml-lacaml/files/patch-src_config_discover.ml b/devel/ocaml-lacaml/files/patch-src_config_discover.ml
index bbdbac121671..4face9928633 100644
--- a/devel/ocaml-lacaml/files/patch-src_config_discover.ml
+++ b/devel/ocaml-lacaml/files/patch-src_config_discover.ml
@@ -1,11 +1,12 @@
---- src/config/discover.ml.orig 2024-12-26 19:34:31 UTC
+--- src/config/discover.ml.orig 2023-05-16 14:23:01 UTC
+++ src/config/discover.ml
-@@ -46,7 +46,7 @@ let () =
+@@ -46,8 +46,6 @@ let () =
(* -march=native is not supported on Apple ARM64 yet.
Its support was introduced in clang >= 15.0.0 *)
match maybe_system, maybe_arch with
- | Some "macosx", Some "arm64"
-+ | Some "bsd_elf", _
- | _, (None | Some ("ppc64" | "ppc64le" | "unknown")) -> shared
- | _ -> "-march=native" :: shared
+- | _, (None | Some ("ppc64" | "ppc64le" | "unknown")) -> shared
+- | _ -> "-march=native" :: shared
++ | _ -> shared
in
+ C.Flags.write_sexp "extra_c_flags.sexp" extra_cflags)