patches/uClibc/0.9.28.3/100-string-functions.patch
author Anthony Foiani <anthony.foiani@gmail.com>
Thu Apr 26 19:55:59 2012 -0600 (2012-04-26)
changeset 2939 58974be61289
parent 6 4267d95819bd
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@1
     1
Give preference to target-optimised functions over glibc's ones,
yann@1
     2
which in turn ahave precedence over generic ones.
yann@1
     3
yann@1
     4
--- uClibc.orig/libc/Makefile	2005-07-20 08:10:44.000000000 +0200
yann@1
     5
+++ uclibc/libc/Makefile	2005-07-28 13:33:40.000000000 +0200
yann@1
     6
@@ -59,7 +59,7 @@
yann@1
     7
 	$(AR) dN 2 $(LIBNAME) $$objs && \
yann@1
     8
 	$(AR) dN 2 $(LIBNAME) $$objs
yann@1
     9
 	@for objfile in obj.signal \
yann@1
    10
-	                obj.string.generic obj.string.$(TARGET_ARCH) obj.string \
yann@1
    11
+	                obj.string obj.string.generic obj.string.$(TARGET_ARCH) \
yann@1
    12
 	                obj.sysdeps.common obj.sysdeps.$(TARGET_ARCH) ; do \
yann@1
    13
 		if [ -e $$objfile ] ; then \
yann@1
    14
 			echo $(AR) $(ARFLAGS) $(LIBNAME) $$objfile ; \