From 1203445eceb3903d1c56b9f0fd862e6d0c73031c Mon Sep 17 00:00:00 2001 From: Aoi Koizumi Date: Sat, 19 Mar 2022 17:51:17 -0300 Subject: Removed files added by mistake, updated convert.conf settings for gmi and www, updated some texts of this repository. Signed-off-by: Aoi Koizumi --- gmi/bb85caff.gmi | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 gmi/bb85caff.gmi (limited to 'gmi/bb85caff.gmi') diff --git a/gmi/bb85caff.gmi b/gmi/bb85caff.gmi deleted file mode 100644 index a15a689..0000000 --- a/gmi/bb85caff.gmi +++ /dev/null @@ -1,26 +0,0 @@ -# OCaml static linking -Authors: Nova[有線魔女] -Date: 2022 01 25 - -Since quite a while ago (a month or so I guess) I had read this blog post by OCamlPro[1] about generating static PIE with OCaml. -The first project on where I have tried doing so was Logarion[2] , and afterwards bumpmap-tool[2], each using a different build system. -In the 1st case I had to add the field '(flags (:standard -cclib -static))' to the 'cli/dune' file and rebuilt with 'dune build' -As for the 2nd case I added '-cclib -static' to the 'ocamlopt' flags in the command line and rebuilt. - -I ran the ldd command in both (test done on a musl-based distro) only to have this output: - - /lib/ld-musl-x86_64.so.1: (insert executable name here): Not a valid dynamic program - -Which means that it does actually work, but I'm not sure whether it could work for bigger projects. -I think that's all I've got to say here. - -##Links -[1]: -=> https://www.ocamlpro.com/2021/09/02/generating-static-and-portable-executables-with-ocaml/ -[2]: -=> http://logarion.orbitalfox.eu -[3]: -=> https://git.sr.ht/~novaburst-dev/bumpmap-tool - -##Extras -[Static builds of my own branch of Logarion]: -=> https://novaburst.bsd.tilde.team/logarion/ \ No newline at end of file -- cgit 1.4.1-2-gfad0