--- - branch: MAIN date: Wed Dec 12 20:49:02 UTC 2012 files: - new: '1.80' old: '1.79' path: pkgsrc/mk/compiler.mk pathrev: pkgsrc/mk/compiler.mk@1.80 type: modified - new: '1.130' old: '1.129' path: pkgsrc/mk/compiler/gcc.mk pathrev: pkgsrc/mk/compiler/gcc.mk@1.130 type: modified id: 20121212T204902Z.2f41bc5dc6b37c9ab536d54cfed3c97642458db5 log: | compiler.mk, gcc.mk: Implement DRAGONFLY_CCVER DragonFly has two compilers in base, GCC 4.4.7 and GCC 4.7.2. The way one switches between them for userland programs is to set CCVER in the environment. However, to set this via make.conf is tricky. I've been using the low level "ALL_ENV+= CCVER=gcc47", but this trick fails to properly identify the compiler which results in _GCC_VERSION being incorrectly defined. Additionally, there are some prominent packages that do not build on gcc 4.7 and the fix is either not fully understood or would require a large amount of work to implement. In these cases, it is desireable to specify the package be built on gcc 4.4 regardless of CCVER setting. To address these issues, a new directive is added: DRAGONFLY_CCVER. It is only effective if OPSYS equals "DragonFly", and it will properly set CCVER and properly define _GCC_VERSION. It will also allow a per package specification of a particular compiler in the pkg makefile. module: pkgsrc subject: 'CVS commit: pkgsrc/mk' unixtime: '1355345342' user: marino