crossdev: enable multilib by default for bare-metal targets
authorMike Frysinger <vapier@gentoo.org>
Thu, 30 Aug 2012 18:14:01 +0000 (14:14 -0400)
committerMike Frysinger <vapier@gentoo.org>
Thu, 30 Aug 2012 18:14:01 +0000 (14:14 -0400)
Bare metal targets often times use multilib to support a variety of
sub-targets with gcc.  Since we just need the compiler to produce
these extra libs and objs, enable multilib by default for all bare
metal targets.  For ones that don't care about multilib, this should
be a nop.

URL: https://bugs.gentoo.org/377039
URL: https://bugs.gentoo.org/407275
Reported-by: Michael Moon <triffid.hunter@gmail.com>
Reported-by: Sven <sven.koehler@gmail.com>
Tested-by: Tim Harder <radhermit@gentoo.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
crossdev

index ddfd5aa..b6ad814 100755 (executable)
--- a/crossdev
+++ b/crossdev
@@ -191,6 +191,7 @@ parse_target() {
                avr*) KPKG="[none]";
                      LCAT="dev-embedded"; LPKG="avr-libc";
                      GUSE="-fortran" # doesn't work
+                     MULTILIB_USE="yes" #377039
                      WITH_DEF_HEADERS="no";;
 
                # due to upstream lameness, build C/C++ at first glance
@@ -213,6 +214,7 @@ parse_target() {
                      LCAT="dev-embedded"; LPKG="msp430-libc";
                      DCAT="dev-embedded"; DPKG="msp430-gdb";
                      GUSE="-fortran -openmp";
+                     MULTILIB_USE="yes"
                      WITH_DEF_HEADERS="no";;
 
                nios2*)
@@ -267,6 +269,7 @@ parse_target() {
                        LPKG="newlib"
                        KPKG="[none]"
                        STAGE_DEFAULT=${STAGE_LIBC}
+                       MULTILIB_USE="yes" #407275
                        WITH_DEF_HEADERS="no"
                        ;;