patches/gcc/4.4.4/180-libgomp-no-werror.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/libgomp/configure gcc-4.4.4/libgomp/configure
yann@1948
     2
--- gcc-4.4.4.orig/libgomp/configure	2010-04-29 10:26:54.000000000 +0200
yann@1948
     3
+++ gcc-4.4.4/libgomp/configure	2010-05-16 19:12:19.000000000 +0200
yann@1948
     4
@@ -3334,7 +3334,7 @@
yann@1948
     5
 
yann@1948
     6
 # Add -Wall -Werror if we are using GCC.
yann@1948
     7
 if test "x$GCC" = "xyes"; then
yann@1948
     8
-  XCFLAGS="$XCFLAGS -Wall -Werror"
yann@1948
     9
+  XCFLAGS="$XCFLAGS -Wall"
yann@1948
    10
 fi
yann@1948
    11
 
yann@1948
    12
 # Find other programs we need.