Subject: Deprecated USE_GCC2, USE_GCC3, USE_SUNPRO, USE_MIPSPRO
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 05/12/2004 15:03:28
In February, pkgsrc/mk/compiler.mk was improved to simplify defining what
compilers are used and what compiler version is required when building
packages.

At that time the USE_* compiler.mk variables became deprecated because
they were replaced with new PKGSRC_COMPILER variable. They are still
supported at this time.

The old style variables support will be removed after pkgsrc-2004Q2 is
cut. This includes:  USE_GCC2, USE_GCC3, USE_SUNPRO, and USE_MIPSPRO.

If you use these old definitions in your pkgsrc, please replace them.

Some examples:

If you use USE_GCC2, replace it with:

GCC_REQD=              2.8.0

If you use USE_GCC3, replace with:

GCC_REQD=              3.0

If you use USE_SUNPRO, replace with:

PKGSRC_COMPILER=       sunpro

And if you use USE_MIPSPRO, replace with:

PKGSRC_COMPILER=       mipspro

(PKGSRC_COMPILER defaults to "gcc".)


Some documentation can be found in the top of the pkgsrc/mk/compiler.mk
file. Also see the pkgsrc/Packages.txt file for more details on selecting
the compiler and using PKGSRC_COMPILER and GCC_REQD.

If you have any questions, please ask.

 Jeremy C. Reed

 	  	 	 BSD News, BSD tutorials, BSD links
	  	 	 http://www.bsdnewsletter.com/