View Single Post

   
  #2 (permalink)  
Old 02-16-2008, 06:21 AM
clvrmnky
 
Posts: n/a
Default Re: Help with 008_getcwd.patch

On 08/01/2005 12:21 PM, Shane Almeida wrote:
> I just applied 008_getcwd.patch and rebuilt and installed libc. The patch
> instructions tell me I need to rebuild statically linked binaries before
> they'll pick up the changes:
>
> Note that programs that are linked statically will not pick up the
> change unless they are rebuilt. This includes the contents of /bin
> and /sbin. The following static binaries use getcwd(3):
> /bin/csh, /bin/ksh, /bin/pwd, /bin/systrace, /sbin/dump
>
> Is this the proper way to rebuild csh, for example?
>
> cd /usr/src/bin/csh
> make obj cleandir depend
> make && make install
>

That looks right. I often move the original out of the way in case
something goes wrong. I poked around in the build settings to see if I
could coerce "install" to do this for me when I want it to, but lost
interest.

> Also, is there a way to determine what other static binaries also use
> getcwd?

The last time I had to do this, I used "ident" and looked for the module
that you are interested in.

e.g.:

cd /bin
for file in *
do
echo $file
ident $file | grep getcwd
done

Worked for me.
Reply With Quote