patches/gcc/4.4.4/270-sh-pr24836.patch
author Anthony Foiani <anthony.foiani@gmail.com>
Thu Apr 26 19:55:59 2012 -0600 (2012-04-26)
changeset 2939 58974be61289
parent 1948 d341be24dc68
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>
yann@1948
     1
diff -durN gcc-4.4.4.orig/gcc/configure gcc-4.4.4/gcc/configure
yann@1948
     2
--- gcc-4.4.4.orig/gcc/configure	2010-05-16 19:11:00.000000000 +0200
yann@1948
     3
+++ gcc-4.4.4/gcc/configure	2010-05-16 19:14:31.000000000 +0200
yann@1948
     4
@@ -22241,7 +22241,7 @@
yann@1948
     5
 	tls_first_minor=14
yann@1948
     6
 	tls_as_opt="-m64 -Aesame --fatal-warnings"
yann@1948
     7
 	;;
yann@1948
     8
-  sh-*-* | sh[34]-*-*)
yann@1948
     9
+  sh-*-* | sh[34]*-*-*)
yann@1948
    10
     conftest_s='
yann@1948
    11
 	.section ".tdata","awT",@progbits
yann@1948
    12
 foo:	.long	25
yann@1948
    13
diff -durN gcc-4.4.4.orig/gcc/configure.ac gcc-4.4.4/gcc/configure.ac
yann@1948
    14
--- gcc-4.4.4.orig/gcc/configure.ac	2010-05-16 19:11:00.000000000 +0200
yann@1948
    15
+++ gcc-4.4.4/gcc/configure.ac	2010-05-16 19:14:31.000000000 +0200
yann@1948
    16
@@ -2684,7 +2684,7 @@
yann@1948
    17
 	tls_first_minor=14
yann@1948
    18
 	tls_as_opt="-m64 -Aesame --fatal-warnings"
yann@1948
    19
 	;;
yann@1948
    20
-  sh-*-* | sh[34]-*-*)
yann@1948
    21
+  sh-*-* | sh[34]*-*-*)
yann@1948
    22
     conftest_s='
yann@1948
    23
 	.section ".tdata","awT",@progbits
yann@1948
    24
 foo:	.long	25