Hi List,

glibc32 does not build on mips at all.
there is a "-m32" option that is sneaking in to the gcc wrapper somewhere which fails the build, that has to be removed. and the abi has to be stepped down to the "old 32" because the new " n32" abi is still a 64bit abi, and tool chain errors will ensue when trying to link as pure 32 bits.


===================================================================
--- glibc32.conf        (revision 34043)
+++ glibc32.conf        (working copy)
@@ -12,9 +12,23 @@
# GNU General Public License can be found in the file COPYING.
# --- T2-COPYRIGHT-NOTE-END ---

-# we need -m32 ... - still needed?
-var_insert GCC_WRAPPER_INSERT " " "-m32"

+
+
+echo "$arch_target" | grep -q  mips
+if [ $? = 0 ]; then
+       # -m32 option is not a  legal option for mips
+       var_remove GCC_WRAPPER_INSERT  ' ' '-m32'
+       # force 32 bit code
+       var_insert GCC_WRAPPER_INSERT " " "-mabi=32"
+       # not sure if these help or not
+       #var_insert GCC_WRAPPER_INSERT " " "-mlong32"
+       #var_insert GCC_WRAPPER_INSERT " " "-mgp32"
+else
+       # we need -m32 ... - still needed?
+       var_insert GCC_WRAPPER_INSERT " " "-m32"
+fi
+
arch_target="`echo $arch_target | arch2arch32`"
echo_status "Set arch_target to $arch_target ..."
set_confopt



----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2

Reply via email to