summaryrefslogtreecommitdiff
path: root/wm
diff options
context:
space:
mode:
authormarino <marino@pkgsrc.org>2012-12-12 20:49:01 +0000
committermarino <marino@pkgsrc.org>2012-12-12 20:49:01 +0000
commitf533bafcc7b95eb8aaf751f6bc144f96f95cbde6 (patch)
tree7a12ae351e0f635f96b34682e5816bd1d37b9485 /wm
parent5afa6e0b5a6a3651a81aa490542351bb83d3a6b8 (diff)
downloadpkgsrc-f533bafcc7b95eb8aaf751f6bc144f96f95cbde6.tar.gz
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.
Diffstat (limited to 'wm')
0 files changed, 0 insertions, 0 deletions