From owner-cvs-all Wed Nov 17 12:41:55 1999 Delivered-To: cvs-all@freebsd.org Received: from cimlogic.com.au (cimlog.lnk.telstra.net [139.130.51.31]) by hub.freebsd.org (Postfix) with ESMTP id 2F1EF14A0B; Wed, 17 Nov 1999 12:41:43 -0800 (PST) (envelope-from jb@cimlogic.com.au) Received: (from jb@localhost) by cimlogic.com.au (8.9.3/8.9.1) id HAA17981; Thu, 18 Nov 1999 07:43:42 +1100 (EST) (envelope-from jb) Date: Thu, 18 Nov 1999 07:43:41 +1100 From: John Birrell To: Marcel Moolenaar Cc: John Birrell , Warner Losh , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src Makefile.inc1 src/usr.bin/make Makefile Message-ID: <19991118074341.A17895@freebsd1.cimlogic.com.au> References: <199911151707.JAA03820@freefall.freebsd.org> <199911160533.WAA02391@harmony.village.org> <199911161544.IAA08642@harmony.village.org> <199911161714.KAA09479@harmony.village.org> <38319FFB.530FFCC6@scc.nl> <199911161935.MAA10311@harmony.village.org> <19991117212631.A13376@freebsd1.cimlogic.com.au> <38329493.82FFA536@scc.nl> <19991118060714.B13376@freebsd1.cimlogic.com.au> <383307B3.ACE06314@scc.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.5i In-Reply-To: <383307B3.ACE06314@scc.nl>; from Marcel Moolenaar on Wed, Nov 17, 1999 at 08:53:23PM +0100 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk On Wed, Nov 17, 1999 at 08:53:23PM +0100, Marcel Moolenaar wrote: > You basicly have 2 variables: MACHINE_ARCH and `sysctl -n > hw.machine_arch`. MACHINE_ARCH is set to the machine for which you're > building and `sysctl -n hw.machine_arch` is contant, describing the host > machine. How do you distinguish the following mandatory cases: > 1) Make a compiler that runs on the host but makes binaries for the > target, and 2) Make a compiler that runs on the target and makes > binaries for the target > > 1) is simple: set MACHINE_ARCH=target and because sysctl=source > CROSS_COMPILING=1 and all is fine. 2) is impossible. You need > MACHINE_ARCH to specify for which machine the compiler should make the > binaries, but you don't have a way to say that the compiler is supposed > to run on the target so that CROSS_COMPILING should be 0. How do you > pull that off? There is a tar of the makefiles that I use to do this in my home directory on freefall. > > Sounds simple, but I doubt that it will work out that way because > > of all the issues related to ${KERNEL}. > > What issues? Set kernel to GENERIC if not already set to something. That wasn't acceptable to people during the elf upgrade, so I doubt that it will be acceptable now. -- John Birrell - jb@cimlogic.com.au; jb@freebsd.org http://www.cimlogic.com.au/ john.birrell@cai.com john.birrell@opendirectory.com.au To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message