OCaml Forge

Detail: [#757] ocamlmktop needs -linkpkg

Bugs: Browse | Download .csv | Monitor

[#757] ocamlmktop needs -linkpkg

Date:
2010-09-22 15:11
Priority:
3
State:
Open
Submitted by:
ygrek (ygrek)
Assigned to:
Sylvain Le Gall (gildor-admin)
Product:
OASIS
Due in version:
0.2.1
Resolution:
Accepted As Bug
Severity:
normal
Version:
0.2.0
Component:
Plugin OCamlbuild
Operating System:
None
 
URL:
Summary:
ocamlmktop needs -linkpkg

Detailed description
Consider the patch below, it doesn't solve all the problems (e.g. path to local stubs) but it definitely makes life easier :

--- myocamlbuild.ml 2010-09-22 18:06:54.000000000 +0300
+++ myocamlbuild.ml.ba1 2010-09-22 18:07:46.000000000 +0300
@@ -275,8 +275,9 @@

| After_rules ->

- (* When one link an OCaml library/binary/package, one should use -linkpkg *)
+ (* When link produces an OCaml program/toplevel, one should use -linkpkg *)
flag ["ocaml"; "link"; "program"] & A"-linkpkg";
+ flag ["ocaml"; "link"; "toplevel"] & A"-linkpkg";

(* For each ocamlfind package one inject the -package option when
* compiling, computing dependencies, generating documentation and

Followup

Message
Date: 2012-05-23 17:22
Sender: Sylvain Le Gall

No. It will go with the new toplevel section. But you'll see it coming faster than expected.... you see what i mean with oasis 0.3.1
Date: 2012-05-23 16:28
Sender: ygrek

not making into 0.3.0?
Date: 2011-01-26 10:34
Sender: ygrek

more missing rules :
flag ["doc"; "ocaml"; "rectypes"] & A"-rectypes";
Date: 2011-01-19 11:04
Sender: ygrek

patch attached
Date: 2010-09-22 15:28
Sender: Sylvain Le Gall

I acknowledge this bug. Thanks for reporting.

Regards
Sylvain Le Gall

Attached Files:

Attachments:
toplevel_linkpkg.diff

Changes:

Field Old Value Date By
Due in versionNone2011-11-23 21:51gildor-admin
File Added97: toplevel_linkpkg.diff2011-01-19 11:04ygrek
ResolutionNone2010-09-22 15:28gildor-admin
assigned_tonone2010-09-22 15:27gildor-admin