hubert.reinterpretcast added a comment.

In D121992#3418443 <https://reviews.llvm.org/D121992#3418443>, @MaskRay wrote:

> If you intend to overlay ld.so, you'll necessarily overlay libc, then 
> --sysroot seems just unneeded at all.

Why? The header and library search paths are not restricted to artifacts from 
libc. I had consulted some Advance Toolchain developers and they indicted that 
it was important for paths from the `--sysroot` to be incorporated (as GCC from 
the Advance Toolchain does).

The library search order has the issue of needing the multiarch/"OS lib dir" 
paths from both the overlay toolchain and the sysroot before attempting 
fallback plain-"lib" paths. Aside from a new option, is there a way to achieve 
that?

I agree, however, that the new option doesn't have to incorporate effects on 
what the `--dyld-prefix` default is.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D121992/new/

https://reviews.llvm.org/D121992

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to