[Bug ada/120106] replace hardcoded gnatmake commands with configuration variables
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120106 Eric Botcazou changed: What|Removed |Added CC||[email protected] --- Comment #11 from Eric Botcazou --- *** Bug 49005 has been marked as a duplicate of this bug. ***
[Bug ada/120106] replace hardcoded gnatmake commands with configuration variables
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120106 Matthias Klose changed: What|Removed |Added CC||doko at gcc dot gnu.org --- Comment #10 from Matthias Klose --- more a notice for Nicolas, the gcc-snapshot build with this patch still fails without an unversioned gnatmake.
[Bug ada/120106] replace hardcoded gnatmake commands with configuration variables
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120106 --- Comment #9 from GCC Commits --- The master branch has been updated by Eric Botcazou : https://gcc.gnu.org/g:b8d33869fda464b4582ebdff3ea3c720f23276b0 commit r16-1828-gb8d33869fda464b4582ebdff3ea3c720f23276b0 Author: Eric Botcazou Date: Mon Jun 30 18:57:27 2025 +0200 Ada: Provide fallback for GNATMAKE_FOR_BUILD Makefile variable The variable is set only at the top level. gcc/ada/ PR ada/120106 * Make-generated.in (GNATMAKE_FOR_BUILD): Define.
[Bug ada/120106] replace hardcoded gnatmake commands with configuration variables
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120106 Eric Botcazou changed: What|Removed |Added CC||emr-gnu at hev dot psu.edu --- Comment #8 from Eric Botcazou --- *** Bug 108909 has been marked as a duplicate of this bug. ***
[Bug ada/120106] replace hardcoded gnatmake commands with configuration variables
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120106 Eric Botcazou changed: What|Removed |Added Target Milestone|--- |16.0 Version|unknown |16.0 Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #7 from Eric Botcazou --- > v02 uses the host compiler set by ./configure in gnattools/Makefile.in and > gcc-interface/Make-lang.in. Applied as well. Thanks for all the work!
[Bug ada/120106] replace hardcoded gnatmake commands with configuration variables
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120106
--- Comment #6 from GCC Commits ---
The master branch has been updated by Eric Botcazou :
https://gcc.gnu.org/g:8440db955b274472234071f79a35b504e96dc3d1
commit r16-1617-g8440db955b274472234071f79a35b504e96dc3d1
Author: Nicolas Boulenguez
Date: Mon Jun 23 00:37:35 2025 +0200
Ada: Replace hardcoded GNAT commands for GNAT tools
This replaces the hardcoded gnat{make,link,bind,ls} commands with expansion
of the GNAT{MAKE,BIND} variables computed by the configure machinery,
during
the build of the GNAT tools.
The default GNATMAKE_FOR_HOST duplicates the default GNATMAKE, and someone
setting GNATMAKE in the toplevel configuration may want it applied for all
host compilations. Direct assignment of GNATMAKE_FOR_HOST keeps working.
gcc/ada/
PR ada/120106
* gcc-interface/Make-lang.in: Set GNAT{MAKE,BIND,LINK_LS}_FOR_HOST
from GNAT{MAKE,BIND} instead of using hardcoded commands.
gnattools/
PR ada/120106
* configure.ac: Remove ACX_NONCANONICAL_HOST and add ACX_PROG_GNAT.
* configure: Regenerate.
* Makefile.in: Do not substitute host_noncanonical but substitute
GNATMAKE and GNATBIND.
Set GNAT{MAKE,BIND,LINK_LS}_FOR_HOST from GNAT{MAKE,BIND} instead
of using hardcoded commands.
[Bug ada/120106] replace hardcoded gnatmake commands with configuration variables
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120106
--- Comment #5 from GCC Commits ---
The master branch has been updated by Eric Botcazou :
https://gcc.gnu.org/g:bab1b2488e2a01b311d584bbecbc6834194e30ed
commit r16-1615-gbab1b2488e2a01b311d584bbecbc6834194e30ed
Author: Nicolas Boulenguez
Date: Sun Jun 22 19:23:11 2025 +0200
Ada: Introduce GNATMAKE_FOR_BUILD Makefile variable
This gets rid of the hardcoded 'gnatmake' command used during the build.
/
PR ada/120106
* Makefile.tpl: Add GNATMAKE_FOR_BUILD to
{HOST,BASE_TARGET}_EXPORTS
* Makefile.in: Regenerate.
* configure.ac: Set the default and substitute the variable.
* configure: Regenerate.
gcc/ada/
PR ada/120106
* Make-generated.in: Use GNATMAKE_FOR_BUILD instead of gnatmake.
* gcc-interface/Makefile.in: Likewise.
[Bug ada/120106] replace hardcoded gnatmake commands with configuration variables
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120106 --- Comment #4 from Eric Botcazou --- > v02 passes GNATMAKE_FOR_BUILD via BASE_TARGET_EXPORT instead of > EXTRA_TARGET_FLAGS. Is this less ugly? Yes, thanks, I'm going to apply it.
[Bug ada/120106] replace hardcoded gnatmake commands with configuration variables
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120106 --- Comment #3 from Nicolas Boulenguez --- Created attachment 61463 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61463&action=edit GNATMAKE for host only, v02 v02 uses the host compiler set by ./configure in gnattools/Makefile.in and gcc-interface/Make-lang.in. Ada/108909 and ada/108983 suggest user interest in GNATMAKE affecting all host compilations.
[Bug ada/120106] replace hardcoded gnatmake commands with configuration variables
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120106 Nicolas Boulenguez changed: What|Removed |Added Attachment #61305|0 |1 is obsolete|| --- Comment #2 from Nicolas Boulenguez --- Created attachment 61462 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61462&action=edit GNATMAKE_FOR_BUILD only, v02 v02 passes GNATMAKE_FOR_BUILD via BASE_TARGET_EXPORT instead of EXTRA_TARGET_FLAGS. Is this less ugly?
[Bug ada/120106] replace hardcoded gnatmake commands with configuration variables
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120106 Eric Botcazou changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED |NEW CC||ebotcazou at gcc dot gnu.org Last reconfirmed||2025-05-05
[Bug ada/120106] replace hardcoded gnatmake commands with configuration variables
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120106 --- Comment #1 from Eric Botcazou --- The build and host changes should be separated. I'm not sure that we want to change the host side (gnattools) given that they mimic Make-lang.in. The build changes are more desirable, but the EXTRA_TARGET_FLAGS part is really ugly.
