| Anonymous | Login | Signup for a new account | 2013-06-20 01:53 CEST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||
| 0005943 | OCaml | OCamlbuild (the tool) | public | 2013-03-12 12:33 | 2013-06-19 20:34 | ||||||
| Reporter | is | ||||||||||
| Assigned To | |||||||||||
| Priority | normal | Severity | feature | Reproducibility | always | ||||||
| Status | acknowledged | Resolution | open | ||||||||
| Platform | any | OS | any | OS Version | any | ||||||
| Product Version | 4.00.1 | ||||||||||
| Target Version | 4.01.0+dev | Fixed in Version | |||||||||
| Summary | 0005943: ocamlmklib always adds -L (absolute) directories also the run-time linker path. | ||||||||||
| Description | ocamlmklib contains this snippet: else if starts_with s "-L" then (c_Lopts := s :: !c_Lopts; let l = chop_prefix s "-L" in if not (Filename.is_relative l) then rpath := l :: !rpath) This results in absolute paths always added to the run-time-path. This is wrong in any build environment where the object directory is accessed through an absolute path; when using -R, the wrong path is added along the right one. Contrary, ELF linker tools always require explicit specification of the run-time path, even when the same. I suggest removing let l = chop_prefix s "-L" in if not (Filename.is_relative l) then rpath := l :: !rpath) If this behaviour is deemed necessary for backwards compatibility, the new one should at least be selectable by a global option to ocamlmklib. | ||||||||||
| Tags | No tags attached. | ||||||||||
| Attached Files | |||||||||||
Notes |
|
|
(0008965) is (reporter) 2013-03-13 09:22 |
remove those two lines and the ( before c_Lopts :=, of course. |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2013-03-12 12:33 | is | New Issue | |
| 2013-03-13 09:22 | is | Note Added: 0008965 | |
| 2013-03-13 14:48 | is | File Added: patch-tools_ocamlmklib | |
| 2013-06-19 20:34 | doligez | Status | new => acknowledged |
| 2013-06-19 20:34 | doligez | Target Version | => 4.01.0+dev |
| Copyright © 2000 - 2011 MantisBT Group |