Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
mkdir -p "${workdir}"/bin || die
local GCC GNATMAKE GNATLS GNATBIND GNATCHOP GNATPREP
- ada_export "${impl}" GCC GNATMAKE GNATLS GNATCHOP GNATBIND GNATPREP
+ ada_export "${impl}" GCC GNAT GNATMAKE GNATLS GNATCHOP GNATBIND GNATPREP
# Ada compiler
cat > "${workdir}/bin/gcc" <<-_EOF_ || die
exec "${GNATPREP}" "\${@}"
_EOF_
chmod a+x "${workdir}/bin/gnatprep" || die
+ cat > "${workdir}/bin/gnat" <<-_EOF_ || die
+ #!/bin/sh
+ exec "${GNAT}" "\${@}"
+ _EOF_
+ chmod a+x "${workdir}/bin/gnat" || die
fi
# Now, set the environment.