Conary:Cross-Compile Macros
From rPath Wiki
Most of these macros will only be of interest if you are cross compiling:
| Macro | Default Value | Notes |
|---|---|---|
| %(buildcc)s | %(cc)s | Specify C compiler that will create executables usable on the build host architecture; use %buildcc)s as a parameter to r.Run specifying the compiler:r.Run('%(buildcc)s -O2 -o foo foo.c')
|
| %(buildcxx)s | %(cxx)s | Specify C++ compiler that will create executables usable on the build host architecture; use %(buildcxx)s as a parameter to r.Configure to specify the compiler:r.Configure(buildconf, bootstrapFlags=,preConfigure='CC=%(buildcc)s CXX=%(buildcxx)s')
|
| %(buildvendor)s | unknown | Specify the build host vendor; this macro is not specified explicitly, rather it is used to define values in the %(buildcc)s macro.
|
| %(buildos)s | linux | Specify the build host operating system; this macro is not specified explicitly, rather it is used to define values in the %(buildcc)s macro.
|
| %(build)s | %(buildarch)s-%(buildvendor)s-%(buildos)s | Specify a combination of build host macros used to define values in the %(buildcc)s macro.
|
| %(hostvendor)s | unknown | Specify the run host vendor; this macro is not specified explicitly, rather it is used to define values in the %(buildcc)s macro.
|
| %(hostos)s | linux | Specify the run host operating system; this macro is not specified explicitly, rather it is used to define values in the %(buildcc)s macro.
|
| %(host)s | %(hostarch)s-%(hostvendor)s-%(hostos)s | Specify a combination of run host macros used to define values in the %(buildcc)s macro.
|
| %(targetvendor)s | unknown | Specify the target host vendor; this macro is not specified explicitly, rather it is used to define values in the %(buildcc)s macro.
|
| %(targetos)s | linux | Specify the target host operating system; this macro is not specified explicitly, rather it is used to define values in the %(buildcc)s macro.
|
| %(target)s | %(targetarch)s-%(targetvendor)s-%(targetos)s | Specify a combination of target host macros used to define values in the %(buildcc)s macro.
|
The following macros will be set when cross-compiling unless they are set here.
| Macro | Default Value | Notes |
|---|---|---|
| %(crossdir)s | cross-target-%(target)s | Specify cross-compiling tools installation directory; an x86_64 gcc executable could be located in /opt/cross-target-x86_64/usr/bin, for example.
|
| %(crossprefix)s | /opt/%(crossdir)s | Specify cross compiler build prefix location; for an x86_64 cross-compile, this directory could be /opt/cross-target-x86_64, for example.
|
| %(sysroot)s | %(crossprefix)s/sys-root | Specify cross-compiled libraries and executables directory location; for an x86_64 cross-compile, this directory could be /opt/cross-target-x86_64/sys-root, for example.
|
| %(headerpath)s | %(sysroot)s/%(includedir)s | Specify cross-compile target header files directory location; for an x86_64 cross-compile, this directory could be /opt/cross-target-x86_64/sys-root/usr/include, for example.
|
