forked from ocaml-cross/opam-cross-windows
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix compilation of ocaml 4.14.0 for regular mingw targets, add 4.14.1… (
- Loading branch information
Showing
47 changed files
with
1,858 additions
and
881 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ maintainer: "[email protected]" | |
conflicts: [ | ||
"ocaml-windows32" | ||
] | ||
depends: ["ocaml"] | ||
depends: ["ocaml" {<= "4.12.0"}] |
13 changes: 13 additions & 0 deletions
13
packages/flexdll-windows/flexdll-windows.0.42/files/flexdll-windows.install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
bin: [ | ||
"flexlink" | ||
] | ||
libexec: [ | ||
"flexlink.exe" | ||
] | ||
lib: [ | ||
"flexdll.h" | ||
"?flexdll_mingw.o" | ||
"?flexdll_initer_mingw.o" | ||
"?flexdll_mingw64.o" | ||
"?flexdll_initer_mingw64.o" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
DIRNAME=`dirname $0` | ||
|
||
${DIRNAME}/../lib/flexdll-windows/flexlink.exe "$@" |
13 changes: 13 additions & 0 deletions
13
packages/flexdll-windows/flexdll-windows.0.42/files/patches/no-gcc_eh.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/reloc.ml b/reloc.ml | ||
index 827413f..523dc72 100644 | ||
--- a/reloc.ml | ||
+++ b/reloc.ml | ||
@@ -1279,7 +1279,7 @@ let setup_toolchain () = | ||
flush stdout | ||
end; | ||
default_libs := | ||
- ["-lmingw32"; "-lgcc"; "-lgcc_eh"; "-lmoldname"; "-lmingwex"; "-lmsvcrt"; | ||
+ ["-lmingw32"; "-lgcc"; "-lmoldname"; "-lmingwex"; "-lmsvcrt"; | ||
"-luser32"; "-lkernel32"; "-ladvapi32"; "-lshell32" ]; | ||
if !exe_mode = `EXE then default_libs := "crt2.o" :: !default_libs | ||
else default_libs := "dllcrt2.o" :: !default_libs |
3 changes: 3 additions & 0 deletions
3
packages/flexdll-windows/flexdll-windows.0.42/files/version.ml.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
let version = "%{version}%" | ||
let mingw_prefix = "%{conf-gcc-windows32:prefix}%" | ||
let mingw64_prefix = "%{conf-gcc-windows64:prefix}%" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
opam-version: "2.0" | ||
maintainer: "[email protected]" | ||
substs: [ | ||
"version.ml" | ||
] | ||
patches: [ | ||
"patches/no-gcc_eh.patch" | ||
] | ||
build: [ | ||
["touch" "Compat.ml"] | ||
["sh" "-c" "cat Compat402.ml >> Compat.ml"] {ocaml:compiler < "4.02.0"} | ||
["sh" "-c" "cat Compat403.ml >> Compat.ml"] {ocaml:compiler < "4.03.0"} | ||
["sh" "-c" "cat Compat405.ml >> Compat.ml"] {ocaml:compiler < "4.05.0"} | ||
["sh" "-c" "cat Compat406.ml >> Compat.ml"] {ocaml:compiler < "4.06.0"} | ||
[ | ||
"%{conf-gcc-windows32:prefix}%gcc" | ||
"-c" | ||
"-DMINGW" | ||
"flexdll.c" | ||
"-o" | ||
"flexdll_mingw.o" | ||
] {conf-gcc-windows32:installed} | ||
[ | ||
"%{conf-gcc-windows32:prefix}%gcc" | ||
"-c" | ||
"-DMINGW" | ||
"flexdll_initer.c" | ||
"-o" | ||
"flexdll_initer_mingw.o" | ||
] {conf-gcc-windows32:installed} | ||
[ | ||
"%{conf-gcc-windows64:prefix}%gcc" | ||
"-c" | ||
"-DMINGW" | ||
"flexdll.c" | ||
"-o" | ||
"flexdll_mingw64.o" | ||
] {conf-gcc-windows64:installed} | ||
[ | ||
"%{conf-gcc-windows64:prefix}%gcc" | ||
"-c" | ||
"-DMINGW" | ||
"flexdll_initer.c" | ||
"-o" | ||
"flexdll_initer_mingw64.o" | ||
] {conf-gcc-windows64:installed} | ||
[ | ||
"ocamlopt" | ||
"version.ml" | ||
"Compat.ml" | ||
"coff.ml" | ||
"cmdline.ml" | ||
"create_dll.ml" | ||
"reloc.ml" | ||
"-g" | ||
"-w" | ||
"-165" | ||
"-o" | ||
"flexlink.exe" | ||
] | ||
] | ||
depends: ["ocaml" "conf-gcc-windows32" | "conf-gcc-windows64"] | ||
synopsis: | ||
"FlexDLL is a Windows dynamic linker extension allowing DLLs to depend on each other" | ||
extra-files: [ | ||
["flexlink" "md5=e4522fc7b43c35e45278158caf45159d"] | ||
["version.ml.in" "md5=f1bb53b9442eeda71d4963c02bf9fa84"] | ||
["flexdll-windows.install" "md5=1b80c115bb264f51debdd24c5b25b306"] | ||
["patches/no-gcc_eh.patch" "md5=65bdd2a32d0777a9d8b315df91632166"] | ||
] | ||
url { | ||
src: "https://github.com/alainfrisch/flexdll/archive/0.42.tar.gz" | ||
checksum: "9464ae7a7e566ba7c96336cf2f34cc73" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
packages/ocaml-windows/ocaml-windows.4.14.1/files/install.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh -e | ||
|
||
PREFIX="$1" | ||
HOST="$2" | ||
|
||
for bin in ocamlc ocamlopt ocamlmklib; do | ||
ln -s "${PREFIX}/windows-sysroot/bin/${bin}.exe" "${PREFIX}/bin/${HOST}-${bin}" | ||
ln -s "${PREFIX}/windows-sysroot/bin/${bin}.exe" "${PREFIX}/windows-sysroot/bin/${bin}" | ||
done | ||
|
||
for bin in ocamlcp ocamlmktop ocamldoc ocamldep; do | ||
ln -s "${PREFIX}/bin/${bin}" "${PREFIX}/bin/${HOST}-${bin}" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh -e | ||
|
||
PREFIX="$1" | ||
HOST="$2" | ||
|
||
for bin in ocamlc ocamlopt ocamlcp ocamlmklib ocamlmktop ocamldoc ocamldep; do | ||
rm -f "${PREFIX}/bin/${HOST}-${bin}" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
opam-version: "2.0" | ||
maintainer: "[email protected]" | ||
install: [ | ||
["./install.sh" "%{prefix}%" "%{conf-gcc-windows:host}%"] | ||
] | ||
remove: [ | ||
["./remove.sh" "%{prefix}%" "%{conf-gcc-windows:host}%"] | ||
] | ||
depends: [ | ||
"ocaml" | ||
"conf-gcc-windows" | ||
"ocaml-windows32" {= "4.14.1"} | "ocaml-windows64" {= "4.14.1"} | ||
] | ||
synopsis: "A meta-package depending on any OCaml cross-compiler" | ||
extra-files: [ | ||
["remove.sh" "md5=b97c542567963902a748467b7edf90d8"] | ||
["install.sh" "md5=037f9267dee33f7b29380504b94bff98"] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.