patches/gcc/4.4.5/220-libiberty-pic.patch
author Anthony Foiani <anthony.foiani@gmail.com>
Thu Apr 26 19:55:59 2012 -0600 (2012-04-26)
changeset 2939 58974be61289
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@2149
     1
diff -durN gcc-4.4.5.orig/libiberty/Makefile.in gcc-4.4.5/libiberty/Makefile.in
yann@2149
     2
--- gcc-4.4.5.orig/libiberty/Makefile.in	2008-10-22 15:30:19.000000000 +0200
yann@2149
     3
+++ gcc-4.4.5/libiberty/Makefile.in	2010-10-09 23:02:28.000000000 +0200
yann@2149
     4
@@ -227,6 +227,7 @@
yann@2149
     5
 	  $(AR) $(AR_FLAGS) $(TARGETLIB) \
yann@2149
     6
 	    $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \
yann@2149
     7
 	  $(RANLIB) $(TARGETLIB); \
yann@2149
     8
+	  cp $(TARGETLIB) ../ ; \
yann@2149
     9
 	  cd ..; \
yann@2149
    10
 	else true; fi
yann@2149
    11