RPATH exclusion of implicit directories does not consider symlinks
When computing the runtime search path to pass to the linker
-rpath option we automatically filter out directories that are implied by the platform or toolchain. This avoids unnecessary rpath entries that may conflict with the real dynamic loader's paths.
However, the filter does not account for differences in directory names due to symbolic links. This can cause undesired rpath entries to be left behind.