ada.eclass: add export of GNAT
authorTupone Alfredo <tupone@gentoo.org>
Mon, 21 Oct 2019 06:52:22 +0000 (08:52 +0200)
committerTupone Alfredo <tupone@gentoo.org>
Mon, 21 Oct 2019 06:52:22 +0000 (08:52 +0200)
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
eclass/ada.eclass

index dad3d9acce858f5189f80bbf680df2621f6fc02e..361ffb65cd108e535e1322fcd7b64966b3b441d2 100644 (file)
@@ -355,7 +355,7 @@ ada_wrapper_setup() {
                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
@@ -388,6 +388,11 @@ ada_wrapper_setup() {
                        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.