From owner-freebsd-current@FreeBSD.ORG Thu Jun 12 13:46:16 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B75F37B401 for ; Thu, 12 Jun 2003 13:46:16 -0700 (PDT) Received: from neo.jnielsen.net (12-254-226-178.client.attbi.com [12.254.226.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id 861A543F3F for ; Thu, 12 Jun 2003 13:46:15 -0700 (PDT) (envelope-from john@jnielsen.net) Received: from buff (buff.local [192.168.0.10]) by neo.jnielsen.net (8.12.9/8.12.9) with ESMTP id h5CKkENa003720 for ; Thu, 12 Jun 2003 14:46:14 -0600 (MDT) (envelope-from john@jnielsen.net) From: John Nielsen To: current@freebsd.org Date: Thu, 12 Jun 2003 14:46:42 -0600 User-Agent: KMail/1.5.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200306121446.42456.john@jnielsen.net> Subject: build flags for a 386DX (5.1) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2003 20:46:16 -0000 [escalated from -questions] Hi folks- I am setting up FreeBSD 5.1-RELEASE on a 386DX. I'm mostly doing it as a learning exercise (or perhaps because I'm a masochist), but the machine may be used as a firewall at some point. I have the OS installed with a custom kernel, and things are actually going quite well. There are (of course) some problems though. Most of the userland utilities work great, but some just dump core. The one I miss in particular is groff (for manpages, etc). I suspect that the problems are a result of CPU instructions that the poor 386 doesn't understand. I do have a separate build machine (soon to be running 5.1 as well), so I'd like to recompile everything (kernel, world, and ports-to-be-made-into-packages) for the 386 with the appropriate flags to gcc and friends. Hopefully that will take care of the issues I'm seeing. So my question is, what flags should I use and where should I put them? I'd like to be able to switch easily between builds for the 386 and "normal" builds (for everything else). Can I just put an override in /etc/make.conf or do I have to futz with /usr/share/mk/bsd.cpu.mk? (In the case of the latter, detailed hints would be appreciated.. I don't grok Make all that well yet.) Thanks, JN