https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119435
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Sergey Fedorov from comment #2) > > Thank you. Indeed, surprising that nobody reported it. I have seen an old > issue in OpenBLAS repo re Solaris and Darwin, but it was of 2015, I assumed > it might have been fixed for common targets since then: > https://github.com/OpenMathLib/OpenBLAS/issues/700 Solaris is a different issue all together; see PR 38924 and PR 50166 . That is for Solaris, priorities works when using GNU LD but fails with using Oracle/Sun's ld from my reading of the bug reports there.