Branch: refs/heads/master Home: https://github.com/crosstool-ng/crosstool-ng Commit: 3dbb576c1708c1683ef780a43dec31a220458f39 https://github.com/crosstool-ng/crosstool-ng/commit/3dbb576c1708c1683ef780a43dec31a220458f39 Author: Alexey Neyman Date: 2016-12-11 (Sun, 11 Dec 2016) Changed paths: A samples/x86_64-w64-mingw32,arm-cortexa9_neon-linux-gnueabihf/crosstool.config A samples/x86_64-w64-mingw32,arm-cortexa9_neon-linux-gnueabihf/reported.by M scripts/build/companion_libs/200-libelf.sh M scripts/build/companion_libs/210-expat.sh M scripts/build/companion_libs/220-ncurses.sh M scripts/build/companion_libs/320-libiconv.sh M scripts/build/companion_libs/330-gettext.sh Log Message: ----------- 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 Commit: 400f9e097265e66113cb46fb8f903af4e491f306 https://github.com/crosstool-ng/crosstool-ng/commit/400f9e097265e66113cb46fb8f903af4e491f306 Author: Alexey Neyman Date: 2016-12-16 (Fri, 16 Dec 2016) Changed paths: A samples/x86_64-w64-mingw32,arm-cortexa9_neon-linux-gnueabihf/crosstool.config A samples/x86_64-w64-mingw32,arm-cortexa9_neon-linux-gnueabihf/reported.by M scripts/build/companion_libs/200-libelf.sh M scripts/build/companion_libs/210-expat.sh M scripts/build/companion_libs/220-ncurses.sh M scripts/build/companion_libs/320-libiconv.sh M scripts/build/companion_libs/330-gettext.sh Log Message: ----------- Merge pull request #506 from stilor/canadian-gettext-mingw32 Make companion libs static; fix gettext build on mingw Compare: https://github.com/crosstool-ng/crosstool-ng/compare/7bea082b3ff7...400f9e097265