Subject: CVS commit: pkgsrc/mk
To: None <pkgsrc-changes@NetBSD.org>
From: Johnny C. Lam <jlam@netbsd.org>
List: pkgsrc-changes
Date: 11/30/2004 14:50:37
Module Name:	pkgsrc
Committed By:	jlam
Date:		Tue Nov 30 14:50:37 UTC 2004

Modified Files:
	pkgsrc/mk: compiler.mk
	pkgsrc/mk/buildlink3: bsd.buildlink3.mk
	pkgsrc/mk/compiler: ccache.mk ccc.mk distcc.mk gcc.mk mipspro.mk
	    sunpro.mk xlc.mk
	pkgsrc/mk/wrapper: bsd.wrapper.mk

Log Message:
Modify the way that the toolchain variables, e.g. CC, CPP, CXX, LD, etc.,
are handled.  The idea now is to simply remove the paths in the values
of these variables, leaving behind only the basename plus any arguments,
e.g.:

	CC= /usr/local/bin/gcc       becomes   CC= gcc
	CPP= /usr/local/bin/gcc -E   becomes   CPP= gcc -E

The wrapper scripts are generated for every unique executable mentioned
by the toolchain variables, so for the example above, only a "gcc"
wrapper script is generated for ${CC} and ${CPP}.  PKG_{CC,CPP,CXX,etc.}
are the paths to the executables wrapped by the wrapper scripts.

Note that it's now possible to set "CC" to something more than just the
path to the compiler, e.g.

	CC= cc -ffast-math -funroll-loops -fomit-frame-pointer

and the full value of ${CC} will be passed through via CONFIGURE_ENV
and MAKE_ENV.


To generate a diff of this commit:
cvs rdiff -r1.39 -r1.40 pkgsrc/mk/compiler.mk
cvs rdiff -r1.164 -r1.165 pkgsrc/mk/buildlink3/bsd.buildlink3.mk
cvs rdiff -r1.20 -r1.21 pkgsrc/mk/compiler/ccache.mk
cvs rdiff -r1.5 -r1.6 pkgsrc/mk/compiler/ccc.mk
cvs rdiff -r1.21 -r1.22 pkgsrc/mk/compiler/distcc.mk
cvs rdiff -r1.76 -r1.77 pkgsrc/mk/compiler/gcc.mk
cvs rdiff -r1.28 -r1.29 pkgsrc/mk/compiler/mipspro.mk
cvs rdiff -r1.24 -r1.25 pkgsrc/mk/compiler/sunpro.mk
cvs rdiff -r1.6 -r1.7 pkgsrc/mk/compiler/xlc.mk
cvs rdiff -r1.12 -r1.13 pkgsrc/mk/wrapper/bsd.wrapper.mk

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