summaryrefslogtreecommitdiff
path: root/devel/ocaml-base
diff options
context:
space:
mode:
Diffstat (limited to 'devel/ocaml-base')
-rw-r--r--devel/ocaml-base/Makefile1
-rw-r--r--devel/ocaml-base/files/patch-src_discover_discover.ml14
2 files changed, 15 insertions, 0 deletions
diff --git a/devel/ocaml-base/Makefile b/devel/ocaml-base/Makefile
index ca035cf7cd06..162106a0d0f0 100644
--- a/devel/ocaml-base/Makefile
+++ b/devel/ocaml-base/Makefile
@@ -1,6 +1,7 @@
PORTNAME= base
PORTVERSION= 0.16.3
DISTVERSIONPREFIX= v
+PORTREVISION= 1
CATEGORIES= devel
PKGNAMEPREFIX= ocaml-
diff --git a/devel/ocaml-base/files/patch-src_discover_discover.ml b/devel/ocaml-base/files/patch-src_discover_discover.ml
new file mode 100644
index 000000000000..f2339c100a1d
--- /dev/null
+++ b/devel/ocaml-base/files/patch-src_discover_discover.ml
@@ -0,0 +1,14 @@
+--- src/discover/discover.ml.orig 2024-04-29 15:54:18 UTC
++++ src/discover/discover.ml
+@@ -4,7 +4,11 @@ int main(int argc, char ** argv)
+ {|
+ int main(int argc, char ** argv)
+ {
++#if defined(__clang__) && !defined(__x86_64__) && !defined(__i386__)
++#error "-mpopcnt is not for this arch"
++#else
+ return __builtin_popcount(argc);
++#endif
+ }
+ |}
+ ;;