https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65351
--- Comment #22 from Iain Sandoe <iains at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #21) > Another option is not to add -mdynamic-no-pic for clang and other compilers > that don't support -mno-dynamic-no-pic. clang supports (and generates appropriate code for) -mdynamic-no-pic. as wee see (at present) it doesn't support -mno-dynamic-no-pic [(In reply to Jakub Jelinek from comment #21) > Another option is not to add -mdynamic-no-pic for clang and other compilers > that don't support -mno-dynamic-no-pic. Yeah, that seems like the safest bet :-(. (will try to get a patch together to fix future clang versions, but that won't alter the ones out in the wild).