On 09.12.2024 18:57, Andrii Sultanov wrote: > ocamlmklib has special handling for C-like '-Wl,-rpath' option, but does > not know how to handle '-Wl,-rpath-link', as evidenced by warnings like: > "Unknown option > -Wl,-rpath-link=$HOME/xen/tools/ocaml/libs/eventchn/../../../../tools/libs/toollog" > Pass this option directly to the compiler with -ccopt instead. > > Also pass -L directly to the linker with -ldopt. This prevents embedding > absolute > paths from buildtime into binary's RPATH. > > Fixes: f7b4e4558b42 ("tools/ocaml: Fix OCaml libs rules")
Just to mention it: The hash is that of a backport, the staging commit is 8ffcf184affb afaict. Please use the canonical (staging) hash whenever available. Jan