patches/binutils/2.15/cross-gprof.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun May 20 13:48:26 2007 +0000 (2007-05-20)
changeset 112 ea15433daba0
permissions -rw-r--r--
Ah! I finally have a progress bar that doesn't stall the build!
- pipe size in Linux is only 8*512=4096 bytes
- pipe size is not setable
- when the feeding process spits out data faster than the eating
process can read it, then the feeding process stalls after 4KiB
of data sent to the pipe
- for us, the progress bar would spawn a sub-shell every line,
and the sub-shell would in turn spawn a 'date' command.
Which was sloooww as hell, and would cause some kind of a
starvation: the pipe was full most of the time, and the
feeding process was stalled all this time.

Now, we use internal variables and a little hack based onan offset
to determine the elapsed time. Much faster this way, but still
CPU-intensive.
yann@1
     1
--- binutils-2.15/configure.old	2004-07-21 21:36:47.000000000 -0700
yann@1
     2
+++ binutils-2.15/configure	2004-07-21 21:37:08.000000000 -0700
yann@1
     3
@@ -999,7 +999,7 @@
yann@1
     4
 
yann@1
     5
 # Some tools are only suitable for building in a "native" situation.
yann@1
     6
 # Remove these if host!=target.  
yann@1
     7
-native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff gprof target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
yann@1
     8
+native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
yann@1
     9
 
yann@1
    10
 # Similarly, some are only suitable for cross toolchains.
yann@1
    11
 # Remove these if host=target.
yann@1
    12
--- binutils-2.15/configure.in.old	2004-07-21 21:37:19.000000000 -0700
yann@1
    13
+++ binutils-2.15/configure.in	2004-07-21 21:37:34.000000000 -0700
yann@1
    14
@@ -236,7 +236,7 @@
yann@1
    15
 
yann@1
    16
 # Some tools are only suitable for building in a "native" situation.
yann@1
    17
 # Remove these if host!=target.  
yann@1
    18
-native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff gprof target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
yann@1
    19
+native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
yann@1
    20
 
yann@1
    21
 # Similarly, some are only suitable for cross toolchains.
yann@1
    22
 # Remove these if host=target.