this repo has no description
1opam-version: "2.0"
2synopsis: "OCaml 4.04.0, with afl-fuzz instrumentation backported from 4.05"
3maintainer: "David Allsopp <david@tarides.com>"
4depends: [
5 "ocaml" {= "4.04.0" & post}
6 "base-unix" {post}
7 "base-bigarray" {post}
8 "base-threads" {post}
9]
10conflict-class: "ocaml-core-compiler"
11flags: compiler
12setenv: CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs"
13build: [
14 [
15 "sed"
16 "-ib"
17 "-e"
18 "s/opts=\"\"/opts=\"-Wno-implicit-function-declaration\"/"
19 "config/auto-aux/hasgot"
20 ] {os = "macos"}
21 ["./configure" "-prefix" prefix]
22 {os != "openbsd" & os != "freebsd" & os != "macos"}
23 ["./configure" "-prefix" prefix "-cc" "cc" "-aspp" "cc -c"]
24 {os = "openbsd" | os = "freebsd" | os = "macos"}
25 [make "world"]
26 [make "world.opt"]
27]
28install: [
29 ["mkdir" "-p" "%{lib}%/ocaml/"]
30 [
31 "sh"
32 "-exc"
33 "echo \"* : g = 1\" > %{lib}%/ocaml/ocaml_compiler_internal_params"
34 ]
35 [make "install"]
36]
37url {
38 src: "https://github.com/stedolan/ocaml/archive/afl-backport.tar.gz"
39 checksum: [
40 "sha256=fb8a23eefbdf4f86c458e1559985da70c947a0da8b17db73a91238e932c7b7c2"
41 "md5=2ac30a9a3f014c2dab4ef1a1d365b72c"
42 ]
43}
44patches: ["fix-gcc10.patch" "gpr1330.patch" "alt-signal-stack.patch"]
45available: !(os = "macos" & arch = "arm64")
46license: "QPL-1.0 AND LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception"
47authors: [
48 "Xavier Leroy"
49 "Damien Doligez"
50 "Alain Frisch"
51 "Jacques Garrigue"
52 "Didier Rémy"
53 "Jérôme Vouillon"
54]
55bug-reports: "https://github.com/ocaml/opam-repository/issues"
56homepage: "https://ocaml.org"
57dev-repo: "git+https://github.com/ocaml/ocaml.git#4.04"
58extra-source "alt-signal-stack.patch" {
59 src: "https://github.com/ocaml/ocaml/commit/6bcff7e6ce1a43e088469278eb3a9341e6a2ca5b.patch?full_index=1"
60 checksum: "sha256=dc1e56a04f557c751c7e09b8d70247181842cfd99f235eff6e4d143c9d892925"
61}
62extra-source "gpr1330.patch" {
63 src: "https://github.com/ocaml/ocaml/commit/db11f141a0e35c7fbaec419a33c4c39d199e2635.patch?full_index=1"
64 checksum: "sha256=ba3e0b48250e66a08eef0a5162bfdea2e20e3cdefd098ee38f345ae8e8175ff4"
65}
66extra-source "fix-gcc10.patch" {
67 src:
68 "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/ocaml-base-compiler/fix-gcc10.patch.4.04.0"
69 checksum: [
70 "sha256=595b914548bec578fc1b6f55abad62d18a9d707dc7dbcf9775b09f0781b1f203"
71 "md5=8b0606a5733be21ee8ae2a19ce67059e"
72 ]
73}