Skip to content

Commit

Permalink
Mk/Uses/ada.mk: Don't set CC to gnatmake but to gcc
Browse files Browse the repository at this point in the history
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
  • Loading branch information
herrhotzenplotz authored and clausecker committed Oct 19, 2023
1 parent 76da322 commit 5b5f129
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Mk/Uses/ada.mk
Expand Up @@ -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

Expand Down

0 comments on commit 5b5f129

Please sign in to comment.