From owner-freebsd-questions@FreeBSD.ORG Sat Dec 27 17:19:27 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B8B6C16A4CE for ; Sat, 27 Dec 2003 17:19:27 -0800 (PST) Received: from lilzmailso01.liwest.at (lilzmailso01.liwest.at [212.33.55.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FAA543D2D for ; Sat, 27 Dec 2003 17:19:26 -0800 (PST) (envelope-from dgw@liwest.at) Received: from cm58-27.liwest.at ([212.33.58.27]) by lilzmailso01.liwest.at with esmtp (Exim 4.24) id 1AaPaW-0008Bs-Fx; Sun, 28 Dec 2003 02:19:24 +0100 From: Daniela To: Sergey 'DoubleF' Zaharchenko Date: Sun, 28 Dec 2003 02:14:37 +0000 User-Agent: KMail/1.5.3 References: <200312231832.04910.dgw@liwest.at> <20031224162447.4e5cc8a6.doublef@tele-kom.ru> In-Reply-To: <20031224162447.4e5cc8a6.doublef@tele-kom.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200312280214.37962.dgw@liwest.at> cc: questions@freebsd.org Subject: Re: Question about static libraries and compression X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2003 01:19:27 -0000 On Wednesday 24 December 2003 13:24, Sergey 'DoubleF' Zaharchenko wrote: > On Tue, 23 Dec 2003 18:32:04 +0000 > > Daniela probably wrote: > > I have a problem with linking: > > When I invoke make, I always give it the -DNOSTATIC option on the > > commandline to save space. However, this doesn't work. My system still > > builds static libraries. Or are the binaries linked dynamically, and the > > static libs are there for nothing? I guess it's safe to delete them, > > right? > > If you *know* no user will ever need them (he is not going to write > programs which link statically), then it's all right. The main problem is, I tell the system to link everything dynamically (-DNOSTATIC), but my system doesn't do it. The binaries are still linked statically. Did I do something wrong? I always thought it's the -DNOSTATIC option. > > Everything is self-compiled, I do not use binary packages at all. > > > > Also, I read that the kernel can execute gzipped a.out binaries directly, > > can the same thing be done for ELF? I need a really small system, because > > I want > > gzexe. > > > to boot and run it from CD-ROM. > > Try putting the programs in a crunchbox, as it is done on most > boot-floppies. Man crunchgen, chrunchide, etc. I think compression and dynamic linking (when I get it to work) will suffice. Thanks for your help. It's almost done, just a few minor changes and we're ready to go.