Personal tools
     DOCUMENTATION

Conary:Cross-Compile Macros

From rPath Wiki

Jump to: navigation, search
Conary --> Packaging --> Recipe --> Macros --> Cross-compile Macros

Most of these macros will only be of interest if you are cross compiling:

Macro Default Value Notes
%(buildcc)s%(cc)sSpecify 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)sSpecify 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)sunknownSpecify the build host vendor; this macro is not specified explicitly, rather it is used to define values in the %(buildcc)s macro.
%(buildos)slinuxSpecify 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)sSpecify a combination of build host macros used to define values in the %(buildcc)s macro.
%(hostvendor)sunknownSpecify the run host vendor; this macro is not specified explicitly, rather it is used to define values in the %(buildcc)s macro.
%(hostos)slinuxSpecify 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)sSpecify a combination of run host macros used to define values in the %(buildcc)s macro.
%(targetvendor)sunknownSpecify the target host vendor; this macro is not specified explicitly, rather it is used to define values in the %(buildcc)s macro.
%(targetos)slinuxSpecify 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)sSpecify 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)scross-target-%(target)sSpecify 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)sSpecify 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-rootSpecify 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)sSpecify 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.