Release Compiler options

Emanuel Strobl Emanuel.Strobl at gmx.net
Tue Oct 5 03:38:00 PDT 2004


Am Dienstag, 5. Oktober 2004 12:00 schrieb Matthew Seaman:
> On Tue, Oct 05, 2004 at 10:45:09AM +0200, Emanuel Strobl wrote:
[...]
> > > There is an excellent hint for compiler flags to be found in the
> > > 19.4.3 section of the FreeBSD handbook.
> >
> > Hm, this is for the world and is very well known and documented.
> > I'm talking about /usr/src/release/Makefile
> >
> > > The /usr/obj directory composes of the compiled applications from
> > > the buildworld function.  You can delete it after you did a successful
> > > completion of the installworld on a system.  That's what happens
> > > when you do "make clean" in the /usr/src directory.
> >
> > Again, I'm not talking about make installworld, but 'make release'
>
> If you're using 'make release' you're expected to a) have your own
> local copy of the FreeBSD src CVS repository and b) know how to use
> cvs(1) and make(1).  'make release' is aimed at expert users;
> beginners would be well advised to steer clear of it.
>
> What you do is edit the /usr/src/release/Makefile, specifically the
> CHROOTDIR, BUILDNAME and CVSROOT it tells you to set. Or specify them
> on the command line if you prefer.
>
> Then you setup the ${LOCAL_PATCHES} variable to point to a file of
> patches to apply to the checked out chroot'ed source tree (hint: try
> applying a patch to ${CHROOTDIR}/etc/make.conf to fiddle with the make

Ok, so share/examples/etc/make.conf is not evaluated like 
etc/defautls/make.conf was before? That's the point I guess.
Thanks for your explanation, I've been building releases some years ago, so 
usually I'm quiet familar with cvs.

Thanks,

-Harry

> flags).  Similarly you can run a shell script ${LOCAL_SCRIPT} to do
> whatever you want to the chroot'ed sources before building.
>
>  Cheers,
>
>  Matthew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20041005/19798ba6/attachment.bin


More information about the freebsd-questions mailing list