Bug#483906: Adding amd64 -> i486 cross compiler
Hello Arthur,
> Why do we need cross-compilers between biarched archs ? ``gcc -m32'' on amd64
> and ``gcc -m64'' on i386 are fine. Also, please rebase your patch on current SVN.
It looked like somebody was using those kind of compilers
https://bugs.launchpad.net/ubuntu/+source/gcc-4.1/+bug/121834
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466422
Why don't fix that bug? Maybe is a useless toolchain, but it should
behave as the other builds. Also, now i'm building on a amd64 machine,
but what about powerpc host builds? That could fix powerpc -> i386
toolchain as well.
I send you a rebased patches for gcc-4.1 and gcc-4.2 svn code (it
looked like somebody already added powerpc lines), but it'd be better
for me to sent current sources diffs for now long.
Cheers ;-)
--
Héctor Orón
diff -urN gcc-4.1/debian/rules.d/binary-libstdcxx-cross.mk gcc-4.1.cross/debian/rules.d/binary-libstdcxx-cross.mk
--- gcc-4.1/debian/rules.d/binary-libstdcxx-cross.mk 2008-06-03 09:14:25.000000000 +0000
+++ gcc-4.1.cross/debian/rules.d/binary-libstdcxx-cross.mk 2008-06-03 09:43:35.000000000 +0000
@@ -18,6 +18,9 @@
ifeq ($(DEB_TARGET_GNU_TYPE),powerpc-linux-gnu)
AUX_DEB_TARGET_GNU_TYPE := powerpc64-linux-gnu
endif
+ ifeq ($(DEB_TARGET_GNU_TYPE),i486-linux-gnu)
+ AUX_DEB_TARGET_GNU_TYPE := x86_64-linux-gnu
+ endif
endif
libstdc_ext = -$(BASE_VERSION)
diff -urN gcc-4.2/debian/rules.d/binary-libstdcxx-cross.mk gcc-4.2.cross/debian/rules.d/binary-libstdcxx-cross.mk
--- gcc-4.2/debian/rules.d/binary-libstdcxx-cross.mk 2008-06-03 09:14:41.000000000 +0000
+++ gcc-4.2.cross/debian/rules.d/binary-libstdcxx-cross.mk 2008-06-03 09:42:06.000000000 +0000
@@ -18,6 +18,9 @@
ifeq ($(DEB_TARGET_GNU_TYPE),powerpc-linux-gnu)
AUX_DEB_TARGET_GNU_TYPE := powerpc64-linux-gnu
endif
+ ifeq ($(DEB_TARGET_GNU_TYPE),i486-linux-gnu)
+ AUX_DEB_TARGET_GNU_TYPE := x86_64-linux-gnu
+ endif
endif
libstdc_ext = -$(BASE_VERSION)
Reply to: