Hi all,
  The driver currently will remove "/lib" and "/usr/lib" from the library path 
that gets passed to the linker because it considers them as paths that the 
linker will already known to search. But this is not true for newer linkers, 
mold and lld for an example don't have a default search path.
This patch removes the special casing to fix FreeBSD building where lld is used 
by default and also fix riscv-linux-gnu when used in combination with mold. 
I have tested it on x86_64-linux-gnu and it works there but since the code in 
the driver has been around since 1992, I request some folks to test it on AIX, 
Mac OS (Darwin) and solaris where the ld is not GNU bfd ld as I don't have 
access to those targets currently.

Thanks,
Andrew Pinski

Attachment: 0001-Don-t-remove-usr-lib-and-lib-from-when-passing-to-th.patch
Description: 0001-Don-t-remove-usr-lib-and-lib-from-when-passing-to-th.patch

Reply via email to