diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-05-15 20:54:06 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-05-15 20:54:06 +0000 |
commit | 109690e1e29f4b46ad5074315e988dfa69839568 (patch) | |
tree | cd00314bf091bd416519a2bcee4c81c29ab6450f | |
parent | 409ef5b84c2410e7bebec838e3c5150ab60b3aa7 (diff) | |
download | crosstool-ng-109690e1e29f4b46ad5074315e988dfa69839568.tar.gz crosstool-ng-109690e1e29f4b46ad5074315e988dfa69839568.tar.bz2 crosstool-ng-109690e1e29f4b46ad5074315e988dfa69839568.zip |
Backport #627 from trunk:
Add a patch to the ageing glibc-2.3.6 to make it compile on stupid shells that have a defective implementation of echo.
Thanks to Willy Tarreau for pointing to the patch.
/branches/1.1/docs/CREDITS | 4 4 0 0 ++++
1 file changed, 4 insertions(+)
-rw-r--r-- | docs/CREDITS | 4 | ||||
-rw-r--r-- | patches/glibc/2.3.6/250-csu-Makefile.patch | 39 |
2 files changed, 43 insertions, 0 deletions
diff --git a/docs/CREDITS b/docs/CREDITS index 1a32fbfd..ab439919 100644 --- a/docs/CREDITS +++ b/docs/CREDITS @@ -39,6 +39,10 @@ And in order of appearance on the crossgcc ML: Michael Abbott: - make it build with ancient findutils + Willy Tarreau: + - a patch to glibc to build on 'ancient' shells + - reported mis-use of $CT_CC_NATIVE + Many others have contributed, either in form of patches, suggestions, comments, or testing... Thank you to all of you! diff --git a/patches/glibc/2.3.6/250-csu-Makefile.patch b/patches/glibc/2.3.6/250-csu-Makefile.patch new file mode 100644 index 00000000..509cbcc1 --- /dev/null +++ b/patches/glibc/2.3.6/250-csu-Makefile.patch @@ -0,0 +1,39 @@ +Use printf instead of echo for some shells. + +http://www.cygwin.com/ml/libc-alpha/2005-02/msg00123.html + +This patch does not generate invalid csu/version-info.h which has +unterminating " line because some /bin/sh cannot parse correctly. The +previous discussion was: + + http://sources.redhat.com/ml/libc-alpha/2004-08/msg00129.html + http://sources.redhat.com/ml/libc-alpha/2004-08/msg00145.html + +This patch gets rid of all this issue because the conclusion of the +discussion was to use printf instead of echo. Roland, could you look +at it again? + +Regards, +-- gotom + +2005-02-26 GOTO Masanori <gotom@debian.or.jp> + + * csu/Makefile: Use printf instead of echo for some shells. + +Index: csu/Makefile +=================================================================== +RCS file: /cvs/glibc/libc/csu/Makefile,v +retrieving revision 1.75 +diff -u -p -r1.75 Makefile +--- glibc/csu/Makefile 3 Jan 2005 17:57:14 -0000 1.75 ++++ glibc.new/csu/Makefile 27 Feb 2005 01:17:49 -0000 +@@ -241,7 +241,7 @@ $(objpfx)version-info.h: $(common-objpfx + esac; \ + files="$(all-Banner-files)"; \ + if test -n "$$files"; then \ +- echo "\"Available extensions:\\n\""; \ ++ printf '"Available extensions:\\n"\n'; \ + sed -e '/^#/d' -e 's/^[[:space:]]*/ /' \ + -e 's/^\(.*\)$$/\"\1\\n\"/' $$files; \ + fi) > $@T + |