On Mon, Jan 25, 2021 at 8:41 PM Bruno Haible <br...@clisp.org> wrote: > > Jeffrey Walton wrote: > > Placing flags in CC breaks other scripts. For example, this no longer works: > > > > if [[ ! $(command -v "${CC}") ]]; then > > echo "The compiler is not valid. Please install a compiler." > > exit 1 > > fi > > Such scripts are not supported.
I actually do that in my configure.ac. Quality user feedback is more important than working around Autotools bugs. > Some flags, like '-m32' or '-m64', MUST be > put in $CC. [1] I place them where they belong - in CFLAGS and CXXFLAGS. The downside is you have to pick the triplet on Solaris and a few other platforms. Working around the Autotools bugs just means they will never get fixed. They will keep telling the world to work around their bugs. Jeff