From owner-freebsd-questions@FreeBSD.ORG Tue Oct 5 10:00:14 2004 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 3F4EC16A4CE for ; Tue, 5 Oct 2004 10:00:14 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6BB5A43D1F for ; Tue, 5 Oct 2004 10:00:13 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i95A07ia011338 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 5 Oct 2004 11:00:07 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)i95A07la011337; Tue, 5 Oct 2004 11:00:07 +0100 (BST) (envelope-from matthew) Date: Tue, 5 Oct 2004 11:00:07 +0100 From: Matthew Seaman To: Emanuel Strobl Message-ID: <20041005100007.GC9642@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Emanuel Strobl , freebsd-questions@freebsd.org, "Haulmark, Chris" References: <6FC9F9894A9F8C49A722CF9F2132FC2201FFC245@ms05.mailstreet2003.net> <200410051045.15454.Emanuel.Strobl@gmx.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PuGuTyElPB9bOcsM" Content-Disposition: inline In-Reply-To: <200410051045.15454.Emanuel.Strobl@gmx.net> User-Agent: Mutt/1.4.2.1i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (smtp.infracaninophile.co.uk [IPv6:::1]); Tue, 05 Oct 2004 11:00:08 +0100 (BST) X-Virus-Scanned: clamd / ClamAV version devel-20040904, clamav-milter version 0.75l on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: "Haulmark, Chris" cc: freebsd-questions@freebsd.org Subject: Re: Release Compiler options 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: Tue, 05 Oct 2004 10:00:14 -0000 --PuGuTyElPB9bOcsM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 05, 2004 at 10:45:09AM +0200, Emanuel Strobl wrote: > Am Dienstag, 5. Oktober 2004 03:52 schrieb Haulmark, Chris: > > > -----Original Message----- > > > From: owner-freebsd-questions@freebsd.org > > > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of > > > Emanuel Strobl > > > Sent: Monday, October 04, 2004 8:43 PM > > > To: freebsd-questions@freebsd.org > > > Subject: Release Compiler options > > > > > > I really spent some time tracing the make release, but > > > couldn't find any way > > > to modify the compiler flags for the release. Why do I need a > > > populated /usr/obj if it's never touched? I really think I'm missing > > > something. Two years ago I had no problems building specail > > > 4.4-RELEASEs. > > > > > > Any hint is welcome. > > > > There is an excellent hint for compiler flags to be found in the > > 19.4.3 section of the FreeBSD handbook. >=20 > Hm, this is for the world and is very well known and documented. > I'm talking about /usr/src/release/Makefile >=20 > > > > 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. >=20 > 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 flags). Similarly you can run a shell script ${LOCAL_SCRIPT} to do whatever you want to the chroot'ed sources before building. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --PuGuTyElPB9bOcsM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBYnCniD657aJF7eIRAjMaAJ4lqwaHYQjfB40R9sYWugVvXdkC/ACePy1K cd29fZPoxvQa3YtD17qclqY= =E3H3 -----END PGP SIGNATURE----- --PuGuTyElPB9bOcsM--