Date: Mon, 9 Sep 1996 20:25:14 -0400 (EDT) From: Chuck Robey <chuckr@glue.umd.edu> To: Jim Durham <durham@durham> Cc: hackers@freebsd.org Subject: Re: NOSHARED Message-ID: <Pine.OSF.3.95.960909202349.1508B-100000@modem.eng.umd.edu> In-Reply-To: <Pine.BSF.3.91.960909200201.4503C-100000@w2xo.pgh.pa.us>
next in thread | previous in thread | raw e-mail | index | archive | help
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! ----------------------------+-----------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.3.95.960909202349.1508B-100000>