I want to build gdb for Windows and target it to multiple Linux architectures.
I've successfully built gdb for windows which target aarch64-linux-gnu with next command
./configure --host=x86_64-w64-mingw32 --target=aarch64-linux-gnu
But couldn't target it to multiple architectures.
The gdb documentation says that there is option --enable-targets But
./configure --help
Doesn't print such option.
My final goal is gdb for Windows and target it to aarch64-linux-gnu and x86_64-pc-linux-gnu What should I do for that?
As was pointed out in the comments, for GDB specific configure options you need gdb/configure --help
.
For your particular question though, what you need is the --enable-targets=all
configure option.
The --enable-targets
option either takes the special keyword all
, or it takes a comma separated list of additional targets to support. Targets specified in --enable-targets
are always in addition to the target specified with --target=...
.