From owner-freebsd-stable Fri Oct 5 18:10:26 2001 Delivered-To: freebsd-stable@freebsd.org Received: from obsecurity.dyndns.org (adsl-64-165-226-227.dsl.lsan03.pacbell.net [64.165.226.227]) by hub.freebsd.org (Postfix) with ESMTP id ABEEC37B401 for ; Fri, 5 Oct 2001 18:10:22 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 27EBC66BD5; Fri, 5 Oct 2001 18:10:22 -0700 (PDT) Date: Fri, 5 Oct 2001 18:10:21 -0700 From: Kris Kennaway To: "E.B. Dreger" Cc: stable@FreeBSD.ORG Subject: Re: bug or feature: "make world" static linking Message-ID: <20011005181021.A84073@xor.obsecurity.org> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="KsGdsel6WgEHnImy" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from eddy+public+spam@noc.everquick.net on Fri, Oct 05, 2001 at 08:44:34PM +0000 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --KsGdsel6WgEHnImy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 05, 2001 at 08:44:34PM +0000, E.B. Dreger wrote: > Greetings all, >=20 > While playing around with 4.4-R, I finally did my first 'make > world'. Even after running 'strip' on the resultant binaries, I > was puzzled by their large sizes compared to -RELEASE. >=20 > After investigating with 'ldd', it was pretty obvious that the > binaries had been _statically_ linked. Easy enough to change > by adding "-Xlinker -Bdynamic" to CFLAGS. >=20 > However: >=20 > Static linking for /bin and /sbin is obviously the sane choice, > but I'd prefer dynamic linking for anything in /usr. Bug, > feature, or just me cutting my teeth? It shouldn't be doing this unless you tell it to. What other local settings have you changed? Kris --KsGdsel6WgEHnImy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7vln9Wry0BWjoQKURAjcGAKD04H4rrrfpVH5m0fXFvZrKPxeC0QCg+Ur5 U9qWZ8+0LmpFstHKnkLcuPI= =77UF -----END PGP SIGNATURE----- --KsGdsel6WgEHnImy-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message