Add multilib support for avr5 architecture
[hvlinux.git] / stage0 / pkg / gcc
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: