[clang] [flang] [flang][Driver] When linking with the Fortran runtime, the `addArchSpecificRPath()` should be called too (PR #114837)

Paul Osmialowski via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 5 05:11:09 PST 2024


pawosm-arm wrote:

> `addSanitizerRuntime` and `addOpenMPRuntime` are already calling `addArchSpecificRPath`. It it a problem if rpath is added multiple times?
> 

I've been testing it with and without -fopenmp and didn't observe any problem

> Compiler-rt libs (`libclang_rt.*.a`) are added as absolute paths, shouldn't the Fortran-runtime do the same?

This makes sense for static libraries, Fortran-runtime can be built static or shared, and in case of shared lib, the rpath issue starts to kick in.


https://github.com/llvm/llvm-project/pull/114837


More information about the cfe-commits mailing list