On Thu, 15 Jun 2006, John Baldwin wrote: JB> > I forgot to define NO_MALLOC_EXTRAS in malloc.c on one of my test machines JB> and JB> > I'm taking a noticeable performance hit. How do I just rebuild libc without JB> > rebuilding userland? This box is only 500 MHz and a system rebuild takes JB> > quite a while. JB> JB> cd /usr/src/lib/libc JB> make clean JB> make cleandir JB> make obj JB> make depend JB> make all JB> make install JB> JB> Something like that should do it. You might have to rebuild any statically JB> linked binaries as well (/sbin/init and /bin/sh) but fixing libc should JB> probably solve most of your problems. Well, at least on RELENG_6 /bin/sh is dynamically linked: root_at_woozle:~# file /bin/sh /bin/sh: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked (uses shared libs), stripped root_at_woozle:~# ldd /bin/sh /bin/sh: libedit.so.5 => /lib/libedit.so.5 (0x28090000) libncurses.so.6 => /lib/libncurses.so.6 (0x280a5000) libc.so.6 => /lib/libc.so.6 (0x280e6000) root_at_woozle:~# The only two are root_at_woozle:~# file /bin/* /sbin/* | grep 'statically linked' /sbin/devd: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), statically linked, stripped /sbin/init: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), statically linked, stripped Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck_at_rinet.ru *** ------------------------------------------------------------------------Received on Sun Jun 18 2006 - 21:26:43 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:57 UTC