]> Untitled Git - hvlinux.git/commitdiff
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 5a057a100342160dffdf98faf47153846f160a2b..d4c51e66d84c7214a4e5d7d621ddc92ebd600225 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 fab1a514723f2f6a6531a8d5930c2dfe86fd93b2..7fe5c65fcdaba18418aefa275b2bbc0ed78e4b8b 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: