b37304e0ba
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. |
||
---|---|---|
.. | ||
ccache.mk | ||
ccc.mk | ||
clang.mk | ||
distcc.mk | ||
f2c.mk | ||
g95.mk | ||
gcc.mk | ||
hp.mk | ||
icc.mk | ||
ido.mk | ||
mipspro-ucode.mk | ||
mipspro.mk | ||
pcc.mk | ||
sunpro.mk | ||
xlc.mk |