diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-10-14 22:44:24 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-10-14 22:44:24 +0200 |
commit | e2b9a81da34023db468b61caecf1b4799016f174 (patch) | |
tree | 6bdb3dc39eb5a490d49823b07b336a260cb0a6f9 /config/toolchain.in | |
parent | 6e00f49ab44487694fd0e68a3f4b2c4f43f72afe (diff) | |
download | crosstool-ng-e2b9a81da34023db468b61caecf1b4799016f174.tar.gz crosstool-ng-e2b9a81da34023db468b61caecf1b4799016f174.tar.bz2 crosstool-ng-e2b9a81da34023db468b61caecf1b4799016f174.zip |
scripts: check host features with host compiler
Currently, we check host feature in ./configure. This works only for
cross toolchains, but not for canadian toolchains. ./configure has
absolutely no way to know what the host for the toolchain will be;
only the build scripts know.
So, move the headers & libraries checks from ./configure to the build
scripts, early enough in the build, but not before we know the host
compiler and other tools.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'config/toolchain.in')
-rw-r--r-- | config/toolchain.in | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/config/toolchain.in b/config/toolchain.in index 5e45fc73..d034315a 100644 --- a/config/toolchain.in +++ b/config/toolchain.in @@ -46,20 +46,14 @@ config SYSROOT_DIR_PREFIX In fact, the sysroot path is constructed as: ${CT_PREFIX_DIR}/${CT_TARGET}/${CT_SYSROOT_DIR_PREFIX}/${CT_SYSROOT_NAME} -# In case we need to add more conditions to enable static -# toolchain, we'll be adding them here -config STATIC_TOOLCHAIN_POSSIBLE +config WANTS_STATIC_LINK bool - default y - depends on CONFIGURE_static_link_ok - depends on CONFIGURE_has_static_libstdcxx - # Add new deps here! :-) config STATIC_TOOLCHAIN bool prompt "Build Static Toolchain (EXPERIMENTAL)" depends on EXPERIMENTAL - depends on STATIC_TOOLCHAIN_POSSIBLE + select WANTS_STATIC_LINK help Build static host binaries. @@ -68,8 +62,9 @@ config STATIC_TOOLCHAIN you can say 'Y' here, and all the host tools will be linked statically. The impacted tools are: - - the GNU binutils - - the cross-gdb + - the cross-binutils (GNU binutils, elf2flt) + - the cross-compiler (gcc) + - the cross-debugger (gdb) The default is 'N', to build dynamicaly-linked host binaries. |