https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119843
--- Comment #4 from Malik Shahzad MUZAFFAR <shahzad.malik.muzaffar at cern dot ch> --- Jakub Jelinek , I do not explicitly set `specs`, somehow `configure` picks it up e.g. I see that all gcc prerequisites package s( e.g. flex, elfutils , bison) which are built using system gcc adds ` -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1` . I have added the flex/config.log here