Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jan 2003 05:50:20 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Paul Hoffman <phoffman@proper.com>
Cc:        questions@freebsd.org
Subject:   Re: A vi for /bin?
Message-ID:  <20030126035020.GA3561@gothmog.gr>
In-Reply-To: <p05210200ba59031c28c6@[165.227.249.18]>
References:  <KOEDJPGCNAIOODFOCJJIEEAIGDAA.petersen@fully.qualified.domain.name> <p05210202ba58f08ccec6@[165.227.249.18]> <20030126023004.GG18454@dan.emsphone.com> <p05210200ba59031c28c6@[165.227.249.18]>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2003-01-25 19:22, Paul Hoffman <phoffman@proper.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030126035020.GA3561>