diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-07-10 04:39:23 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-07-10 04:39:23 +0000 |
commit | b592767ffb58e27ae6f2f9c3223e2dc29baa4742 (patch) | |
tree | 1ad3df9548850250c23e70f0c94491f60292bf1d /sys-devel | |
parent | Added net-analyzer/nagios-nrpe:command-args (diff) | |
download | historical-b592767ffb58e27ae6f2f9c3223e2dc29baa4742.tar.gz historical-b592767ffb58e27ae6f2f9c3223e2dc29baa4742.tar.bz2 historical-b592767ffb58e27ae6f2f9c3223e2dc29baa4742.zip |
fix cross-compiling for alpha
Package-Manager: portage-2.0.51.22-r1
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/gcc/Manifest | 9 | ||||
-rw-r--r-- | sys-devel/gcc/files/3.3.6/gcc-3.3.6-cross-compile.patch | 43 | ||||
-rw-r--r-- | sys-devel/gcc/gcc-3.3.6.ebuild | 3 |
3 files changed, 50 insertions, 5 deletions
diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest index 18312c89dc94..dd70732905af 100644 --- a/sys-devel/gcc/Manifest +++ b/sys-devel/gcc/Manifest @@ -6,7 +6,7 @@ MD5 9cc2e121134d8b572275d91d60839eac gcc-4.0.1.ebuild 1661 MD5 37f3db1694d592dc3a3db07507390b76 gcc-3.1.1-r2.ebuild 9270 MD5 567094e03359ffc1c95af7356395228d metadata.xml 162 MD5 8cfc5360d76544e8a27184903261f268 gcc-3.3.5.20050130-r2.ebuild 3209 -MD5 8ba2f63d0adcc50113526c5ffe3c8d6f gcc-3.3.6.ebuild 2976 +MD5 b6f4e93dde0219995516fc6a542d90f6 gcc-3.3.6.ebuild 3034 MD5 3e3bc1c3e3953428824c0fd3f206c48b gcc-3.3.2-r7.ebuild 21757 MD5 9111df8f4b2d0f617ccc1ab9c7755d7f gcc-3.3.5.20050130-r1.ebuild 3209 MD5 84aad44fae030d93b9c5ad4b404db1de gcc-3.4.3-r1.ebuild 5355 @@ -83,6 +83,7 @@ MD5 9ba0bd0b103cf9535927ad7c482fe780 files/3.3.3/gcc333-debian-arm-getoff.patch MD5 3210d5fd70806c44d4426c3dceebd480 files/3.3.3/gcc333_pre20040408-stack-size.patch 653 MD5 ff6d7b5082c5e39fab8a5d8932c1a8b7 files/3.3.3/gcc-3.3.3-uclibc-add-ssp.patch 461 MD5 25eda9981106a55c413d1df3d3a87db5 files/3.3.3/gcc333-debian-arm-ldm.patch 3383 +MD5 b4e64ad5d47ee85e35b724b037f134ea files/3.3.6/gcc-3.3.6-cross-compile.patch 1512 MD5 4edccdf0b4f6dbbc9f7bc9370c255e0c files/3.4.0/gcc34-reiser4-fix.patch 587 MD5 3f6d070c2a4a899e7d879fdb55eecba4 files/3.4.3/libffi-nogcj-lib-path-fix.patch 1691 MD5 007c62d92efd70fd44c4d2e6a326036b files/3.4.3/libffi-without-libgcj.patch 1658 @@ -96,7 +97,7 @@ MD5 7c29f54dd8d50385ac42fae65459c744 files/3.3.5/gcc-3.3.5-ffecom_gfrt_basictype -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) -iD8DBQFC0KABgIKl8Uu19MoRAodUAJ9IKWtLW+DMLENTcXc8uaPekZfO8gCfWsBk -TxKrHUF316+UdeAsrkdnhyM= -=nSun +iD8DBQFC0Ka/gIKl8Uu19MoRApBNAJ4zRlOXJAKhWfwy8PEz5KK08C2iFgCeKwA7 +wQUt8VHW0HoF9qYm3JYbsqc= +=vmBo -----END PGP SIGNATURE----- diff --git a/sys-devel/gcc/files/3.3.6/gcc-3.3.6-cross-compile.patch b/sys-devel/gcc/files/3.3.6/gcc-3.3.6-cross-compile.patch new file mode 100644 index 000000000000..064bc8dd08eb --- /dev/null +++ b/sys-devel/gcc/files/3.3.6/gcc-3.3.6-cross-compile.patch @@ -0,0 +1,43 @@ +--- gcc/configure.in ++++ gcc/configure.in +@@ -1276,8 +1276,9 @@ + # This prevents libgcc2 from containing any code which requires libc + # support. + inhibit_libc= +-if { test x$host != x$target && test "x$with_headers" = x && +- test "x$with_sysroot" = x ; } || test x$with_newlib = xyes ; then ++if { { test x$host != x$target && test "x$with_sysroot" = x ; } || ++ test x$with_newlib = xyes ; } && ++ { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then + inhibit_libc=-Dinhibit_libc + fi + AC_SUBST(inhibit_libc) +--- gcc/configure ++++ gcc/configure +@@ -1276,8 +1276,9 @@ + # This prevents libgcc2 from containing any code which requires libc + # support. + inhibit_libc= +-if { test x$host != x$target && test "x$with_headers" = x && +- test "x$with_sysroot" = x ; } || test x$with_newlib = xyes ; then ++if { { test x$host != x$target && test "x$with_sysroot" = x ; } || ++ test x$with_newlib = xyes ; } && ++ { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then + inhibit_libc=-Dinhibit_libc + fi + AC_SUBST(inhibit_libc) +--- gcc/config/alpha/linux.h ++++ gcc/config/alpha/linux.h +@@ -72,6 +72,7 @@ + /* Do code reading to identify a signal frame, and set the frame + state data appropriately. See unwind-dw2.c for the structs. */ + ++#ifndef inhibit_libc + #ifdef IN_LIBGCC2 + #include <signal.h> + #include <sys/ucontext.h> +@@ -121,3 +122,4 @@ + (FS)->retaddr_column = 64; \ + goto SUCCESS; \ + } while (0) ++#endif /* inhibit_libc */ diff --git a/sys-devel/gcc/gcc-3.3.6.ebuild b/sys-devel/gcc/gcc-3.3.6.ebuild index 72d90d12dd24..a09d63c196b5 100644 --- a/sys-devel/gcc/gcc-3.3.6.ebuild +++ b/sys-devel/gcc/gcc-3.3.6.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-3.3.6.ebuild,v 1.11 2005/07/10 04:10:38 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-3.3.6.ebuild,v 1.12 2005/07/10 04:39:23 vapier Exp $ MAN_VER="" PATCH_VER="1.2" @@ -76,6 +76,7 @@ src_unpack() { # misc patches that havent made it into a patch tarball yet [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch + epatch "${FILESDIR}"/3.3.6/gcc-3.3.6-cross-compile.patch # Anything useful and objc will require libffi. Seriously. Lets just force # libffi to install with USE="objc", even though it normally only installs |