[med-svn] [Git][med-team/pplacer][master] Link against libimpala and disable static generation

Shayan Doust gitlab at salsa.debian.org
Sun Jun 21 22:05:50 BST 2020



Shayan Doust pushed to branch master at Debian Med / pplacer


Commits:
995bf551 by Shayan Doust at 2020-06-21T22:04:51+01:00
Link against libimpala and disable static generation
Need dynamic linking to various gcc components such as dlOpen

- - - - -


1 changed file:

- debian/patches/ocamlbuild


Changes:

=====================================
debian/patches/ocamlbuild
=====================================
@@ -1,7 +1,5 @@
-Index: pplacer/myocamlbuild.ml
-===================================================================
---- pplacer.orig/myocamlbuild.ml	2020-06-13 17:31:13.250164814 +0200
-+++ pplacer/myocamlbuild.ml	2020-06-13 17:31:13.250164814 +0200
+--- pplacer.orig/myocamlbuild.ml
++++ pplacer/myocamlbuild.ml
 @@ -19,10 +19,7 @@
  module OCamlFind =
  struct
@@ -14,3 +12,24 @@ Index: pplacer/myocamlbuild.ml
  
    (* this is supposed to list available syntaxes, but I don't know how to do it. *)
    let find_syntaxes () = ["camlp4o"; "camlp4r"]
+@@ -190,8 +187,9 @@
+     Batteries.before_options ();
+ 
+     (* use static linking for native binaries *)
+-    if not is_osx then
++    (*if not is_osx then
+       flag ["link"; "ocaml"; "native"] (S[A"-ccopt"; A"-static"]);
++    *)
+ 
+   | After_rules ->
+     OCamlFind.after_rules ();
+@@ -219,6 +217,9 @@
+     if not is_osx then
+       flag ["link"; "ocaml"; "native"] (S[A"-cclib"; A"-lpthread"]);
+ 
++    (* Link against impala library *)
++    flag ["link"; "ocaml"; "native"] (S[A"-cclib"; A"-limpala"]);
++
+     (* custom: incorporate libraries into bytecode *)
+     flag ["link"; "ocaml"; "byte"] (A"-custom");
+ 



View it on GitLab: https://salsa.debian.org/med-team/pplacer/-/commit/995bf551eef7071252dcb8a3b45a09a5951f26e6

-- 
View it on GitLab: https://salsa.debian.org/med-team/pplacer/-/commit/995bf551eef7071252dcb8a3b45a09a5951f26e6
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20200621/bd4f4b4e/attachment-0001.html>


More information about the debian-med-commit mailing list