This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

csu/Makefile patch


Could you please add the attached patch?

It is from http://lists.debian.org/debian-glibc/2003/09/msg00271.html and 
makes it possible to compile glibc using dash as the shell (instead of bash).

Thanks

Rafael
diff -r -u glibc-2.3.2/csu/Makefile glibc-2.3.2-new/csu/Makefile
--- glibc-2.3.2/csu/Makefile	2002-12-31 20:24:37.000000000 -0200
+++ glibc-2.3.2-new/csu/Makefile	2004-07-07 21:14:53.000000000 -0300
@@ -222,13 +222,13 @@
 		   if [ -z "$$os" ]; then \
 		     os=Linux; \
 		   fi; \
-		   echo "\"Compiled on a $$os $$version system" \
-			"on `date +%Y-%m-%d`.\\n\"" ;; \
+                   printf '"Compiled on a %s %s system on %s.\\n"\n' \
+                       "$$os" "$$version" "`date +%Y-%m-%d`" ;; \
 	   *) ;; \
 	 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

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]