Re: [PATCH v3] gdb, configure: Add disable-formats option for configure

Tom Tromey
2025-04-07T19:24:31Z

Guinevere> I'm fine with changing this. I'm only unsure what GNU make
Guinevere> feature you mean. I suppose you mean the makefile should
Guinevere> have:

Guinevere> elf_OBJS=elfread.c
Guinevere> xcoff_OBJS=xcoff.c
Guinevere> all_format_OBJS="$(elf_OBJS) $(xcoff_OBJS) ..."

Yeah.

Guinevere> and there is some way to parse --enable-binary-file-formats
Guinevere> in the makefile?

This bit would still have to be in configure. configure would just
select which object keywords end up in some list.

Basically I don't really like that the configure script has to be edited
when shuffling source files around. Decisions about what to include or
exclude can be in configure, but decisions about the files themselves
should just be in makefile.

Tom