On Tue, 8 Jul 2025 14:11:19 -0500 (CDT) Robert Dubner <rdub...@symas.com> wrote:
> But I have other requirements. I apologize if I keep repeating > myself, but I am being forced to. > > I want to be able to, for example, > > CXXFLAGS='-ggdb -O0' > CXXFLAGS_FOR_COBOL="-Wsomething_or_other" ../configure .... > > I want those warnings to apply to gcc/cobol and not to anything else. > > And then, later on, I want to be able to > > make CXXFLAGS_FOR_COBOL="-Wreplacement_warnings" > > <shrug> I can't do that with the CXXFLAGS= or CXX= solutions. I think you can, though. Richard is saying, $ CXX='g++ -std=c++14' ../configure will allow a build of the whole tree, including libcody, and $ make -C build/gcc/cobol CXXFLAGS='-Werror' can be used to set options for a particular build. I haven't tried it yet, but if that works and meets your needs, then the problem is solved. If it doesn't work in some circumstances, that's another issue. Does that not suffice? --jkl