https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123976
--- Comment #193 from Iain Sandoe <iains at gcc dot gnu.org> --- (In reply to Peter Dyballa from comment #192) > (In reply to Iain Sandoe from comment #191) > > (In reply to Peter Dyballa from comment #190) > > > > you would need to rebuild all the code to take advantage of the Os .. > > repeating the link is not going to do anything. > > So it's meant to add to configure's invocation at least STAGE1_CFLAGS="-Os > -g -pipe" STAGE1_CXXFLAGS="-Os -g -pipe"? Nope, not necessary - this is something that can be done selectively at make-time and does not need to be applied to the configure. > Shouldn't they become CFLAGS and CXXFLAGS? I saw that the error happened > with -no-pie and -no-pic variations, which I do not find sane settings for > an accessible computer. (Would be OK for a printer OS or such.) all of the necessary translations to the flags happen in the build system - it is quite complex because of the three-stage bootstrap and toggling debugs etc. JFTR: You need to specify CFLAGS and CXXFLAGS when doing a cross compiler or a non-bootstrap.
