about summary refs log tree commit diff stats
path: root/gmi/bb85caff.txt
diff options
context:
space:
mode:
authorAoi Koizumi <novaburst@kalli.st>2022-03-18 17:19:55 -0300
committerAoi Koizumi <novaburst@kalli.st>2022-03-18 17:19:55 -0300
commit2ffad537e7dc4e6d70a0873518d4c6a09a5c92fd (patch)
tree3119664e914e2b31604d79a9cce3482fd3d71e69 /gmi/bb85caff.txt
parent7b10faf7494f396be6fe4131e1b562cc384f7c12 (diff)
downloadmirror-world-2ffad537e7dc4e6d70a0873518d4c6a09a5c92fd.tar.gz
Say "hello" 40 times to the place where you have tried salt at least once.
Signed-off-by: Aoi Koizumi <novaburst@kalli.st>
Diffstat (limited to 'gmi/bb85caff.txt')
-rw-r--r--gmi/bb85caff.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/gmi/bb85caff.txt b/gmi/bb85caff.txt
new file mode 100644
index 0000000..fb81e3c
--- /dev/null
+++ b/gmi/bb85caff.txt
@@ -0,0 +1,25 @@
+ID: bb85caff-be39-47b0-9add-42fae180c796
+Title: OCaml static linking
+Authors: Nova[有線魔女] <novaburst@envs.net>
+Date: 2021-09-28T13:36:52-00:00
+Date-Edited: 2022-01-25T13:03:02-03:00
+Topics: Programming > OCaml 
+
+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/>
/a> 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384