Subject: CVS commit: pkgsrc/mk
To: None <pkgsrc-changes@NetBSD.org>
From: Joerg Sonnenberger <joerg@netbsd.org>
List: pkgsrc-changes
Date: 08/01/2007 16:14:17
Module Name:	pkgsrc
Committed By:	joerg
Date:		Wed Aug  1 16:14:17 UTC 2007

Modified Files:
	pkgsrc/mk: bsd.prefs.mk
	pkgsrc/mk/configure: gnu-configure.mk
	pkgsrc/mk/defaults: mk.conf

Log Message:
Begin adding some of the basic, non-intrusive pieces of the
cross-compile support.

- NATIVE_MACHINE_GNU_ARCH, NATIVE_LOWER_ARCH, NATIVE_MACHINE_ARCH,
  NATIVE_MACHINE_PLATFORM and NATIVE_MACHINE_GNU_PLATFORM work
  like the counterpars without NATIVE_ prefix. Expansion of
  NATIVE_LOWER_ARCH and NATIVE_MACHINE_ARCH is enforced early,
  so that MACHINE_ARCH can be overriden in mk.conf to specify the
  target architecture.
- Provide a default of NO for USE_CROSS_COMPILE. This will be the
  main switch to activate cross-compiling and adding it now makes
  it possible to merge more of the patches for specific packages.
- Set --build and --host when cross-compiling, the former using the
  just added variable NATIVE_MACHINE_GNU_PLATFORM.

Supported-by: Google SoC 2007
Looks good: jlam@


To generate a diff of this commit:
cvs rdiff -r1.259 -r1.260 pkgsrc/mk/bsd.prefs.mk
cvs rdiff -r1.5 -r1.6 pkgsrc/mk/configure/gnu-configure.mk
cvs rdiff -r1.156 -r1.157 pkgsrc/mk/defaults/mk.conf

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.