config: add option to build statically linked toolchain
authorBryan Hundven <bryanhundven@gmail.com>
Thu Dec 09 18:54:37 2010 +0100 (2010-12-09)
changeset 2207b268256e4a08
parent 2206 2b5f5173daa0
child 2208 5aa0516d6738
config: add option to build statically linked toolchain

Add a config option to statically build the host tools.
Impacted tools can use that option to decide wether to build
statically or shared.

For now, no tool uses it, but they'll be added one at a time
in the next commits.

Signed-off-by: "Bryan Hundven" <bryanhundven@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
config/toolchain.in
     1.1 --- a/config/toolchain.in	Mon Nov 29 00:50:21 2010 +0100
     1.2 +++ b/config/toolchain.in	Thu Dec 09 18:54:37 2010 +0100
     1.3 @@ -28,6 +28,23 @@
     1.4        In fact, the sysroot path is constructed as:
     1.5          ${CT_PREFIX_DIR}/${CT_TARGET}/${CT_SYSROOT_DIR_PREFIX}/sys-root
     1.6  
     1.7 +config STATIC_TOOLCHAIN
     1.8 +    bool
     1.9 +    prompt "Build Static Toolchain (EXPERIMENTAL)"
    1.10 +    depends on EXPERIMENTAL
    1.11 +    default n
    1.12 +    help
    1.13 +      Build static host binaries.
    1.14 +      
    1.15 +      If you wish to move the toolchain to another host, and you are not
    1.16 +      confident that this host has the required versions of system libs, then
    1.17 +      you can say 'Y' here, and all the host tools will be linked staticaly.
    1.18 +      
    1.19 +      The default is 'N', to build dynamicaly-linked host binaries.
    1.20 +      
    1.21 +      NOTE: this has no connection to whether the target libraries will be
    1.22 +      dynamic or static. This only applies to the tools themselves.
    1.23 +
    1.24  comment "Tuple completion and aliasing"
    1.25  
    1.26  config TARGET_VENDOR