Ticket #8415: haiku-x86_64-cross-tools.patch

File haiku-x86_64-cross-tools.patch, 1.1 KB (added by xyzzy, 8 years ago)

Patch to build cross tools script for x86_64

  • build/scripts/build_cross_tools_gcc4

    From c6623fdce558395c9c5bafd2da9528559cb153d0 Mon Sep 17 00:00:00 2001
    From: Alex Smith <alex@alex-smith.me.uk>
    Date: Wed, 4 Apr 2012 20:51:10 +0100
    Subject: [PATCH] Fixed a compilation failure for the x86_64 toolchain.
    
    This appears to be a problem with GCC's build system: it defaults to having
    multilib enabled, but if it is explicitly enabled with --enable-multilib,
    the build fails.
    ---
     build/scripts/build_cross_tools_gcc4 |    7 +++++--
     1 files changed, 5 insertions(+), 2 deletions(-)
    
    diff --git a/build/scripts/build_cross_tools_gcc4 b/build/scripts/build_cross_tools_gcc4
    index 3c4ba83..571be11 100755
    a b export MAKE  
    2828
    2929case $haikuMachine in
    3030x86_64-*)
    31     binutilsConfigureArgs="--enable-multilib"
    32     gccConfigureArgs="--enable-multilib"
     31    # GCC's default is to enable multilib, but there is a bug when
     32    # explicitly using --enable-multilib that causes a build
     33    # failure
     34    binutilsConfigureArgs=""
     35    gccConfigureArgs=""
    3336    ;;
    3437m68k-*)
    3538    binutilsConfigureArgs="--enable-multilib"