git: 5b5f129463d4 - main - Mk/Uses/ada.mk: Don't set CC to gnatmake but to gcc

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Thu, 19 Oct 2023 07:08:18 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5b5f129463d4d119478e0ff5ca613b7d29edfe53

commit 5b5f129463d4d119478e0ff5ca613b7d29edfe53
Author:     Nico Sonack <nsonack@herrhotzenplotz.de>
AuthorDate: 2023-10-01 17:01:26 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-10-19 07:07:28 +0000

    Mk/Uses/ada.mk: Don't set CC to gnatmake but to gcc
    
    Setting CC to gnatmake breaks compiling simple C objects. Instead
    set it to the correct compiler frontend and set GNATMAKE to gnatmake.
    
    Signed-off-by:  Nico Sonack <nsonack@herrhotzenplotz.de>
    PR:             274238
---
 Mk/Uses/ada.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Mk/Uses/ada.mk b/Mk/Uses/ada.mk
index f380112428dd..f9d239d75116 100644
--- a/Mk/Uses/ada.mk
+++ b/Mk/Uses/ada.mk
@@ -40,7 +40,8 @@ CC=		ada
 _ADAPATH=	${LOCALBASE}/gnat${_ada_version}/bin
 _ADAPORT=	lang/gnat${_ada_version}
 _BINDEP=	${_ADAPATH}/gnat
-CC=		gnatmake -f -u
+GNATMAKE=	gnatmake -f -u
+CC=		gcc
 BINARY_ALIAS+=	ada=${_ADAPATH}/gcc
 .  endif