On 2023-05-12 7:01 a.m., Po Lu via Gcc wrote: > Jason Merrill <ja...@redhat.com> writes: > >> You shouldn't have to change any of those, just configure with CC="gcc >> -fwhatever". > > If it were so simple... > > Many Makefiles come with a habit of using not CC_FOR_BUILD, but just > `cc', to build programs which are run on the build machine.
Then write a wrapper script named "cc", and put that in the PATH: $ cat cc #!/bin/sh exec /my/real/gcc -fwhatever "$@" Done.