https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118975
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #4) > #ifndef LINK_COMMAND_SPEC > #define LINK_COMMAND_SPEC "\ > %{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\ > %(linker) " \ > LINK_PLUGIN_SPEC \ > "%{flto|flto=*:%<fcompare-debug*} \ > %{flto} %{fno-lto} %{flto=*} %l " LINK_PIE_SPEC \ > "%{fuse-ld=*:-fuse-ld=%*} " LINK_COMPRESS_DEBUG_SPEC \ > "%X %{o*} %{e*} %{N} %{n} %{r}\ > %{s} %{t} %{u*} > > > I don't know how to filter out undef in the above gcc specs though. A more explicit set of u* options to pass through might be better.