commit:     d2568f29e87347c458b1b124d9c669b9995effb9
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sat Jun  8 18:14:47 2019 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sat Jun  8 18:14:47 2019 +0000
URL:        https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=d2568f29

crossdev: disable USE=hardened by default on bare-metal

USE=hardened enables more stack-check options by default
At least on arm-none-eabi that causes build failure:
    gcc-8.3.0/libstdc++-v3/libsupc++/array_type_info.cc:30:2:
        sorry, unimplemented: -fstack-check=specific for Thumb-1
     {}
      ^

Reported-by: Bertrand Jacquin
Bug: https://bugs.gentoo.org/687598
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 crossdev | 1 +
 1 file changed, 1 insertion(+)

diff --git a/crossdev b/crossdev
index 673f5f8..5e31e7b 100755
--- a/crossdev
+++ b/crossdev
@@ -326,6 +326,7 @@ parse_target() {
                        STAGE_DEFAULT=${STAGE_LIBC}
                        GUSE+=" cxx -openmp" #489798
                        GUSE+=" -fortran" #589672, needs syscalls
+                       GUSE+=" -hardened" #687598, needs 
-fstack-check=specific support
                        MULTILIB_USE="yes" #407275
                        WITH_DEF_HEADERS="no"
                        ;;

Reply via email to