Arnaud Charlet wrote:
EXTRA_GCC_FLAGS = \
[...]
"`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
Unfortunately, there is no really easy and elegant solution. This one,
for example, would really oblige targets that want to specify Ada-only
flags to also include -Wall -W -gnatpg -gnata.
Why is that so ? I do not understand, could you clarify ? And for
instance give an example of what you have in mind ?
Because the line above, as you know, does not pass LANGUAGES if it is
not set. But if it is set, the value is reset completely, rather than
combined with the value in the subdirectory.
So, the AIX makefile fragments config/mh-ppc-aix and config/mt-ppc-aix
could not just do
ADAFLAGS += -mminimal-toc
ADAFLAGS_FOR_TARGET += -mminimal-toc
but would have to say
ADAFLAGS = -mminimal-toc -Wall -W -gnatpg -gnata
ADAFLAGS_FOR_TARGET = -mminimal-toc -Wall -W -gnatpg -gnata
Paolo