You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 5943 Reporter: is Status: acknowledged (set by @damiendoligez on 2013-06-19T18:34:33Z) Resolution: open Priority: high Severity: minor Platform: any OS: any OS Version: any Version: 4.00.1 Category: tools (ocaml{lex,yacc,dep,debug,...}) Tags: patch Monitored by: is @ygrek@hcarty
Bug 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.
This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc.
Original bug ID: 5943
Reporter: is
Status: acknowledged (set by @damiendoligez on 2013-06-19T18:34:33Z)
Resolution: open
Priority: high
Severity: minor
Platform: any
OS: any
OS Version: any
Version: 4.00.1
Category: tools (ocaml{lex,yacc,dep,debug,...})
Tags: patch
Monitored by: is @ygrek @hcarty
Bug description
ocamlmklib contains this snippet:
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.
File attachments
The text was updated successfully, but these errors were encountered: