crosstool-ng/scripts/build
Alexey Neyman 3dbb576c17 Make companion libs static.
This follows the trend set by 1*.sh scripts that configure ISL, GMP,
MPFR, CLooG, etc. Building with shared libraries presents all kinds
of problems:
- The shared libraries need to be installed into ${CT_PREFIX_DIR}.
- The binaries linked against companion libs need to have proper
RPATH, or they're looking for shared libs in
.build/${CT_PREFIX}/buildtools/lib.
- All libraries must agree as to whether they're built shared,
static, or both. Otherwise, gettext tries to link in static libncurses.a
into a shared library and fails (since libncurses was compiled without
the -fPIC switch and hence contains relocations that cannot be handled
in a shared library).

So this fixes the current mess. If we decide to re-enable building
the companion libs shared, we should probably make this dependent on
a separate suboption of CT_STATIC_TOOLCHAIN.

Add a config loosely based on one reported in the issue 274.

Signed-off-by: Alexey Neyman <stilor@att.net>
2016-12-11 00:46:06 -08:00
..
arch xtensa: fix endianness support 2016-11-22 10:48:34 -08:00
binutils Partially revert 6f8e89cb5c. 2016-11-20 23:50:17 -08:00
cc Pass FOR_BUILD flags when building the pass-1/2 core GCC. 2016-11-28 22:55:54 -08:00
companion_libs Make companion libs static. 2016-12-11 00:46:06 -08:00
companion_tools Add 'companion tools for host' step. 2016-12-02 15:03:15 -08:00
debug Merge pull request #443 from KirillSmirnov/gdb-native 2016-12-05 18:24:05 -08:00
kernel Partially revert 6f8e89cb5c. 2016-11-20 23:50:17 -08:00
libc Fix use of custom location if it is a directory. 2016-12-02 15:02:58 -08:00
test_suite Partially revert 6f8e89cb5c. 2016-11-20 23:50:17 -08:00
arch.sh Partially revert 6f8e89cb5c. 2016-11-20 23:50:17 -08:00
cc.sh Whitespace: We don't use tabs in shell or kconfig files 2015-12-08 10:55:17 -08:00
companion_libs.sh Build companion libs for target. 2015-11-13 10:24:22 -08:00
companion_tools.sh Add 'companion tools for host' step. 2016-12-02 15:03:15 -08:00
debug.sh Simplify the Tools and Debug facilities menu entries: 2008-10-10 14:30:44 +00:00
internals.sh Partially revert 6f8e89cb5c. 2016-11-20 23:50:17 -08:00
test_suite.sh test-suite: Added new test suite feature (experimental) 2010-05-19 17:53:04 +02:00