Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Oct 2001 10:20:52 +0200 (CEST)
From:      Cyrille Lefevre <clefevre@citeweb.net>
To:        "E.B. Dreger" <eddy+public+spam@noc.everquick.net>
Cc:        Neil Blakey-Milner <nbm@mithrandr.moria.org>, Kris Kennaway <kris@obsecurity.org>, stable@FreeBSD.ORG
Subject:   Re: bug or feature: "make world" static linking
Message-ID:  <200110080820.f988Kq752444@gits.dyndns.org>
In-Reply-To: <Pine.LNX.4.20.0110072037510.17424-100000@www.everquick.net>

next in thread | previous in thread | raw e-mail | index | archive | help
E.B. Dreger wrote:
> > Date: Sun, 7 Oct 2001 22:08:44 +0200
> > From: Neil Blakey-Milner <nbm@mithrandr.moria.org>
[snip]
> Has anyone else done a "make buildworld" on 4.4-R?  I can't see

not in -release, but yes in -stable w/ no problem.

> why I'd obtain different behavior than anyone else, but 1) the
> binary release is clearly dynamically linked where one expects
> and 2) mine are beyond a doubt using static linking.

could you give us the output of the following commands :

ls -l /usr/lib/libc.*
ls -l /usr/bin/yes
ldd /usr/bin/yes
cd /usr/src/usr.bin/yes
make clean all install
ls -l /usr/bin/yes
ldd /usr/bin/yes

mine output is :

-r--r--r--  1 root  wheel  1263638 Sep 21 08:24 /usr/lib/libc.a
lrwxr-xr-x  1 root  wheel        9 Sep 21 08:25 /usr/lib/libc.so -> libc.so.4
-r--r--r--  1 root  wheel   630892 Sep 21 08:25 /usr/lib/libc.so.4
-r-xr-xr-x  1 root  wheel  3120 Sep 21 08:46 /usr/bin/yes
/usr/bin/yes:
	libc.so.4 => /usr/lib/libc.so.4 (0x28068000)
rm -f yes yes.o yes.1.gz yes.1.cat.gz
cc -O -pipe -funroll-loops -march=pentium    -c /disk2/4.x-stable/src/usr.bin/yes/yes.c
cc -O -pipe -funroll-loops -march=pentium     -o yes yes.o  
gzip -cn /disk2/4.x-stable/src/usr.bin/yes/yes.1 > yes.1.gz
install -C -c -s -o root -g wheel -m 555  yes /usr/bin
install -C -c -o root -g wheel -m 444 yes.1.gz  /usr/share/man/man1
-r-xr-xr-x  1 root  wheel  3120 Sep 21 08:46 /usr/bin/yes
/usr/bin/yes:
	libc.so.4 => /usr/lib/libc.so.4 (0x28068000)

don't care about -funroll-loops -march=pentium, I've the following
lines in /etc/make.conf :

CPUTYPE= i586/mmx
CFLAGS+= -funroll-loops

Cyrille.
-- 
Cyrille Lefevre                 mailto:clefevre@citeweb.net

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110080820.f988Kq752444>