DragonFly On-Line Manual Pages
COMPILERS.CONF(5) DragonFly File Formats Manual COMPILERS.CONF(5)
compilers.conf -- configuration file for external compilers
The compilers.conf file allows to configure ``external'' compilers for
usage with the DragonFly build(7) system.
The /etc/defaults/compilers.conf file specifies the default settings for
all variables, the /etc/compilers.conf file specifies override settings.
The following variables are available:
<version>_CC The pathname of the cc program of the compiler.
<version>_CFLAGS Any additional flags to pass to <version>_CC.
<version>_CPP The pathname of the cpp program of the compiler.
<version>_CPPFLAGS Any additional flags to pass to <version>_CPP.
<version>_CXX The pathname of the c++ program of the compiler.
<version>_CXXFLAGS Any additional flags to pass to <version>_CXX.
Currently, defaults are provided for gcc48 (installed from dports(7)'s
lang/gcc48), gcc49 (installed from dports(7)'s lang/gcc49), and gcc5
(installed from dports(7)'s lang/gcc5).
In DragonFly, compilers are selected by setting the CCVER variable. The
cpp, cc, etc. programs in /usr/bin are actually links to the objformat(1)
deflector program which is responsible for executing the correct programs
(located in /usr/libexec/$CCVER).
Traditionally, DragonFly has 2 compilers in base, one of which is the
default compiler and the other is either a newer or older version. In
order to allow additional non-base compilers into DragonFly's build
process, objformat(1) deflects to /usr/libexec/custom when CCVER's set-
ting is not one of the compilers in base. This directory contains a cc
wrapper script (and some links to it). The wrapper script then takes
care of making the compiler look and behave like a compiler in base.
The settings in compilers.conf specify paths and flags for the
/etc/compilers.conf external compiler configuration file
Once configured the compiler can be used like this:
env CCVER=<version> make
To try building world and kernel, use:
env WORLD_CCVER=<version> make buildworld
env WORLD_CCVER=<version> make buildkernel KERNCONF=MYCONF
The compilers.conf file first appeared in DragonFly 2.3.
DragonFly 3.9 October 14, 2014 DragonFly 3.9