Subject: CVS commit: pkgsrc/mk/compiler
To: None <pkgsrc-changes@NetBSD.org>
From: Johnny C. Lam <jlam@netbsd.org>
List: pkgsrc-changes
Date: 02/05/2004 03:35:20
Module Name:	pkgsrc
Committed By:	jlam
Date:		Thu Feb  5 03:35:20 UTC 2004

Modified Files:
	pkgsrc/mk/compiler: bsd.compiler.mk ccache.mk distcc.mk gcc.mk
	    mipspro.mk sunpro.mk

Log Message:
Allow bsd.compiler.mk to be included by both bsd.prefs.mk and bsd.pkg.mk.
Any additions to DEPENDS/BUILD_DEPENDS or inclusions of buildlink[23].mk
files are deferred till bsd.compiler.mk is included by bsd.pkg.mk.  We
allow bsd.compiler.mk to be included by bsd.prefs.mk solely for the purpose
of setting CC_VERSION properly for use by package Makefiles.

There is the surprising behaviour that CC_VERSION won't necessarily have
the correct value at all times until after "make extract" has been
completed (dependencies are installed before "make extract"), so package
Makefile writers should keep that in mind.  Just to note that this is
_existing_ behaviour that's preserved by these changes.


To generate a diff of this commit:
cvs rdiff -r1.6 -r1.7 pkgsrc/mk/compiler/bsd.compiler.mk \
    pkgsrc/mk/compiler/ccache.mk pkgsrc/mk/compiler/sunpro.mk
cvs rdiff -r1.9 -r1.10 pkgsrc/mk/compiler/distcc.mk
cvs rdiff -r1.35 -r1.36 pkgsrc/mk/compiler/gcc.mk
cvs rdiff -r1.8 -r1.9 pkgsrc/mk/compiler/mipspro.mk

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