From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 13 20:15:47 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D1E416A4CE for ; Tue, 13 Jan 2004 20:15:47 -0800 (PST) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 601BD43D48 for ; Tue, 13 Jan 2004 20:15:44 -0800 (PST) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 3DB475C74A; Tue, 13 Jan 2004 20:15:44 -0800 (PST) Date: Tue, 13 Jan 2004 20:15:44 -0800 From: Alfred Perlstein To: Tim Kientzle Message-ID: <20040114041544.GK9623@elvis.mu.org> References: <20040110050033.GP9623@elvis.mu.org> <20040110222441.GS9623@elvis.mu.org> <400481D8.2030708@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <400481D8.2030708@acm.org> User-Agent: Mutt/1.4.1i cc: Dag-Erling Sm?rgrav cc: hackers@freebsd.org Subject: Re: help with linking please X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jan 2004 04:15:47 -0000 * Tim Kientzle [040113 15:41] wrote: > Alfred Perlstein wrote: > >It will refuse to strip symbols if: > > > >foo.o:func1() references bar.o:func2(). > > > >But I need it to. > > I suppose there are good reasons why you > cannot compile everything into a single > .o file for distribution? > > > cat master.c > #include > #include > > gcc -o master.o master.c > > Now you have a single .o file with everything > in it and there are therefore no cross-module > references within your library. It would be more trouble than it's worth. I use libssl and libcrypto, it would be a nightmare to #include all those .c files as well as compile it... without incemental compilation it would hurt. What I wound up doing was loading the creating a static object to load my module... er yeah.. :) -- - Alfred Perlstein - Research Engineering Development Inc. - email: bright@mu.org cell: 408-480-4684