From owner-freebsd-hackers Mon Sep 9 17:52:47 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id RAA02389 for hackers-outgoing; Mon, 9 Sep 1996 17:52:47 -0700 (PDT) Received: from cornus.FSL.ORST.EDU (root@FSL.ORST.EDU [128.193.112.105]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id RAA02381 for ; Mon, 9 Sep 1996 17:52:40 -0700 (PDT) Received: from vaccinium.ORST.EDU (vaccinium.FSL.ORST.EDU [128.193.112.180]) by cornus.FSL.ORST.EDU (8.6.9/8.6.9) with ESMTP id RAA22791; Mon, 9 Sep 1996 17:52:33 -0700 Received: by vaccinium.ORST.EDU (SMI-8.6/SMI-SVR4) id RAA09684; Mon, 9 Sep 1996 17:59:40 -0700 Date: Mon, 9 Sep 1996 17:59:39 -0700 (PDT) From: Tai Hsu To: Chuck Robey cc: Jim Durham , hackers@freebsd.org Subject: Re: NOSHARED In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk How can I unsubscribe this e-mail FAQ? Thanks, Tai On Mon, 9 Sep 1996, Chuck Robey wrote: > On Mon, 9 Sep 1996, Jim Durham wrote: > > > I replied to this to another person and neglected to cc: hackers. > > So, let me explain. > > > > I was compiling a hacked copy of slattach.c. I noticed the binary > > was huge and figured out that it was being linked statically. > > > > Being of a curious mind, I decided to investigate and found the > > place in bsd.prog.mk where it was tested to control whether or not > > shared libs are used. > > > > What bothered me at that point was why the original binary was linked > > to use shared libs and the /usr/src/sbin/slattach directory's Makefile > > caused slattach to be statically linked when I made it? If the binary that > > came with the dist was dynamically linked, why was my new compile static? > > > > I then went looking for where NOSHARED was set. I figured it had > > to be in /usr/src/sbin/slattach's Makefile. No dice. I even looked at > > /usr/src and usr/src/sbin Makefiles. No dice. > > > > That is what prompted the question. Maybe it's because the distribution > > was trimmed by picking and choosing what binaries to make dynamic to save > > space in the distribution and the source tree just makes them all static > > to simplify things? > > > > If so, my question remains.. where the heck is it set to YES or TRUE? > > Just curious.. > > Makefile.inc in sbin. Causes all the binaries in sbin to be statically > compiled, but I went into that in the previous mail. > > ----------------------------+----------------------------------------------- > Chuck Robey | Interests include any kind of voice or data > chuckr@eng.umd.edu | communications topic, C programming, and Unix. > 9120 Edmonston Ct #302 | > Greenbelt, MD 20770 | I run Journey2 and n3lxx, both FreeBSD > (301) 220-2114 | version 2.2 current -- and great FUN! > ----------------------------+----------------------------------------------- > >