Add multilib support for avr5 architecture
authorHugo Villeneuve <hugo@hugovil.com>
Sun, 20 Sep 2015 00:48:06 +0000 (20:48 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Sun, 20 Sep 2015 00:48:06 +0000 (20:48 -0400)
stage0/pkg/binutils
stage0/pkg/gcc

index 5a057a1..d4c51e6 100644 (file)
@@ -15,8 +15,13 @@ hvconfig_pre()
         --with-sysroot=${CLFS} \
         --with-lib-path=${CLFS}/dummy-directory/ \
         --disable-nls \
-        --enable-shared \
-        --disable-multilib"
+        --enable-shared"
+
+    if [ x"${HVL_TARGET}" == x"avr" ]; then
+        CONFIGURE_OPTS+="--enable-multilib"
+    else
+        CONFIGURE_OPTS+="--disable-multilib"
+    fi
 
     # --enable-64-bit-bfd:
     # bfd = Binary File Descriptor
index fab1a51..7fe5c65 100644 (file)
@@ -34,8 +34,13 @@ hvconfig_pre()
         --with-cloog=${CROSS_TOOLS_DIR} \
         --with-mpc=${CROSS_TOOLS_DIR}
         --with-system-zlib \
-        --enable-checking=release \
-        --disable-multilib"
+        --enable-checking=release"
+
+    if [ x"${HVL_TARGET}" == x"avr" ]; then
+        CONFIGURE_OPTS+="--enable-multilib"
+    else
+        CONFIGURE_OPTS+="--disable-multilib"
+    fi
 
     if [ "x${HVLABEL}" = "x${GCC}-pass1" ]; then
         # --without-headers: