toolchain.eclass: fix ada build with lto
authorAlfredo Tupone <tupone@gentoo.org>
Fri, 10 Apr 2020 12:09:05 +0000 (14:09 +0200)
committerAlfredo Tupone <tupone@gentoo.org>
Fri, 10 Apr 2020 12:09:05 +0000 (14:09 +0200)
Closes: https://bugs.gentoo.org/716570

Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
eclass/toolchain.eclass

index 9471dc8d8a3c4049f9117a8f2bbff0f923e8bbc2..ce113fd4e021d6c7dd17f8c2ef138cd217dfcdd2 100644 (file)
@@ -1730,12 +1730,12 @@ gcc_do_make() {
                || die "emake failed with ${GCC_MAKE_TARGET}"
 
        if is_ada; then
-               # Building standard ada library
-               emake -C gcc gnatlib-shared
                # Without these links it is not getting the good compiler
                # Need to check why
                ln -s gcc ../build/prev-gcc || die
                ln -s ${CHOST} ../build/prev-${CHOST} || die
+               # Building standard ada library
+               emake -C gcc gnatlib-shared
                # Building gnat toold
                emake -C gcc gnattools
        fi