[Bug ada/85007] -b flag to gnatlink not recognized
ebotcazou at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Mar 22 15:48:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85007
--- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> Is there a new recommended way to get gnatlink to generate a 32-bit bind
> file and link object on MULTIARCH systems (x86/x86_64 in this specific
> case)? It seems this would be functionality that would be needed by others,
> as well as needing a way to cross-compile for target hardware.
That's not sufficient though, the entire toolchain must be configured either
with multilib/multiarch or as a cross toolchain; IOW fiddling only with
gnatlink does not work.
For multilib/multiarch, you need to pass the multilib switch to 'gnatmake'.
For a cross target, you need to configure the compiler as a cross compiler and
the gnattools will automatically follow.
More information about the Gcc-bugs
mailing list