[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

resolver patch



Various people, including myself, were concerned about that 'and every 
other static binary' line in the resolver patch, so I did something about 
it....

Here's a script I assembled to rebuild all the static binaries on a 3.1 
system.  There are two lines that need to be changed depending on the 
architecture.  Other than that, there should be no problems.

Note that it doesn't rebuild a few binaries in /usr/mdec that are built 
with -nostdlibs (i.e. there are no dependencies on anything else), and 
that it doesn't (of course) rebuild anything under /usr/local.

-Dan


---


#!/bin/sh

PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
export PATH

umask 022

cd /usr/src/bin
make obj cleandir depend
make
make install

cd /usr/src/sbin
make obj cleandir depend
make
make install

cd /usr/src
for i in usr.sbin/dhcp \
    usr.bin/encrypt \
    gnu/usr.bin/gzip \
    usr.bin/kdump \
    usr.bin/ktrace \
    usr.sbin/chroot \
    usr.sbin/pwd_mkdb
do
  cd $i
  make obj cleandir depend
  make
  make install
  cd /usr/src
done

# CHANGE DEPENDING ON ARCH;
# see /usr/src/libexec/Makefile and 
# /usr/src/gnu/usr.bin/Makefile
#
#cd /usr/src/libexec/ld.so/ldconfig
cd /usr/src/gnu/usr.bin/ld/ldconfig
make obj cleandir depend
make
make install

# CHANGE DEPENDING ON ARCH
cd /usr/src/sys/arch/i386/stand/installboot
make obj cleandir depend
make
make install

# /usr/libexec/makekey is a hard link to /usr/bin/encrypt

# these don't link libc/etc.
# /usr/mdec/biosboot:     OpenBSD/i386 object file not stripped
# /usr/mdec/boot:         OpenBSD/i386 demand paged executable
# /usr/mdec/mbr:          data