patches/binutils/2.20.1a/300-mips64-defaultemul.patch
author Anthony Foiani <anthony.foiani@gmail.com>
Thu Apr 26 19:55:59 2012 -0600 (2012-04-26)
changeset 2939 58974be61289
parent 2088 4f21ba5f8e91
permissions -rw-r--r--
Allow multi-word "install" command.

Autoconf can determine that the correct install command includes flags,
e.g., "/usr/bin/install -c". When using this as a command, we can't
enclose the value in double-quotes, as that makes some shells use the
whole expression as a filename:

# this is the value returned by autoconf and stored in CT_install
$ ins="/usr/bin/install -c"

# if we call it with quotes, the command is not found
$ "${ins}"
bash: /usr/bin/install -c: No such file or directory

# removing the quotes lets it work as expected
$ ${ins}
/usr/bin/install: missing file operand
Try `/usr/bin/install --help' for more information.

Signed-Off-By: Anthony Foiani <anthony.foiani@gmail.com>
     1 
     2 
     3 diff -durN binutils-2.20.1.orig/ld/configure.tgt binutils-2.20.1/ld/configure.tgt
     4 --- binutils-2.20.1.orig/ld/configure.tgt	2009-08-06 19:38:03.000000000 +0200
     5 +++ binutils-2.20.1/ld/configure.tgt	2010-08-17 19:32:26.000000000 +0200
     6 @@ -400,11 +400,11 @@
     7  mips*-*-vxworks*)	targ_emul=elf32ebmipvxworks
     8  		        targ_extra_emuls="elf32elmipvxworks" ;;
     9  mips*-*-windiss)	targ_emul=elf32mipswindiss ;;
    10 -mips64*el-*-linux-*)	targ_emul=elf32ltsmipn32
    11 -			targ_extra_emuls="elf32btsmipn32 elf32ltsmip elf32btsmip elf64ltsmip elf64btsmip"
    12 +mips64*el-*-linux-*)	targ_emul=elf64ltsmip
    13 +			targ_extra_emuls="elf32ltsmipn32 elf32btsmipn32 elf32ltsmip elf32btsmip elf64btsmip"
    14  			targ_extra_libpath=$targ_extra_emuls ;;
    15 -mips64*-*-linux-*)	targ_emul=elf32btsmipn32
    16 -			targ_extra_emuls="elf32ltsmipn32 elf32btsmip elf32ltsmip elf64btsmip elf64ltsmip"
    17 +mips64*-*-linux-*)	targ_emul=elf64btsmip
    18 +			targ_extra_emuls="elf32btsmipn32 elf32ltsmipn32 elf32btsmip elf32ltsmip elf64ltsmip"
    19  			targ_extra_libpath=$targ_extra_emuls ;;
    20  mips*el-*-linux-*)	targ_emul=elf32ltsmip
    21  			targ_extra_emuls="elf32btsmip elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip"