source: scripts/patch/gcc/4.4.0/40-powepc-fixes.patch@ 95620ac

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 95620ac was e6c4741, checked in by Jim Gifford <clfs@…>, 15 years ago

Temp Workaround for GCC Build Issue on PPC

  • Property mode set to 100644
File size: 1.0 KB
  • gcc/config.host

    A Temporary Work around for
    http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37739
    
    diff -Naur gcc-4.4.0.orig/gcc/config.host gcc-4.4.0/gcc/config.host
    old new  
    135135          # On powerpc*-*-linux* use -Wl,--relax to link cc1,
    136136          # if ld is new enough, otherwise force -O1 in CFLAGS.
    137137          host_ppc_relax_xmake_file=
    138           host_ld_ver=`${CC} -Wl,--version 2>/dev/null | sed 1q`
    139           if echo "$host_ld_ver" | grep GNU > /dev/null; then
    140             host_ld_date=`echo $host_ld_ver \
    141                           | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
    142             if test 0"$host_ld_date" -gt 20080806; then
    143               host_ppc_relax_xmake_file=rs6000/x-linux-relax
    144             fi
    145           fi
    146           if test -z "${host_ppc_relax_xmake_file}"; then
    147             host_ppc_relax_xmake_file=x-cflags-O1
    148           fi
     138          host_ppc_relax_xmake_file=x-cflags-O1
    149139          host_xmake_file="${host_xmake_file} ${host_ppc_relax_xmake_file}"
    150140        fi
    151141        ;;
Note: See TracBrowser for help on using the repository browser.