From owner-freebsd-questions Sat Jan 25 19:51: 7 2003 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 1555D37B401 for ; Sat, 25 Jan 2003 19:51:06 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05A4C43ED8 for ; Sat, 25 Jan 2003 19:51:04 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr364-a24.otenet.gr [195.167.109.56]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id h0Q3ohBb009754; Sun, 26 Jan 2003 05:50:55 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.6/8.12.6) with ESMTP id h0Q3ocVr003745; Sun, 26 Jan 2003 05:50:38 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.6/8.12.6/Submit) id h0Q3oKeM003744; Sun, 26 Jan 2003 05:50:20 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Sun, 26 Jan 2003 05:50:20 +0200 From: Giorgos Keramidas To: Paul Hoffman Cc: questions@freebsd.org Subject: Re: A vi for /bin? Message-ID: <20030126035020.GA3561@gothmog.gr> References: <20030126023004.GG18454@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2003-01-25 19:22, Paul Hoffman wrote: > At 1:36 AM +0000 1/26/03, Petersen wrote: > >Assuming you have the object files from a buildworld hanging around, then > >cd /usr/obj/usr/src/usr.bin/vi > >cc -O -pipe -o vi *.o -lncurses -static && strip vi && mv vi /bin/ > >should probably supply you with what you want. > > Two modifications made this work fine: > - I hadn't done a buildworld, but doing the following got the same result: > cd /usr/src/usr.bin/vi > make && cc -O -pipe -o vi *.o -lncurses -static && strip vi && mv vi /bin A quicker way to do the same could be: # make NOSHARED=yes all # install -m 0755 -o root -g wheel vi /bin I like NOSHARED too much to resist following up :) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message