Branch: refs/heads/master Home: https://github.com/crosstool-ng/crosstool-ng Commit: 8397ad2c1a71992b441d73802f45be582c37b1e7 https://github.com/crosstool-ng/crosstool-ng/commit/8397ad2c1a71992b441d73802f45be582c37b1e7 Author: Alexey Neyman Date: 2017-02-22 (Wed, 22 Feb 2017) Changed paths: A patches/elf2flt/4820f0dbb77cd6564d5fa0817218fe2a1fb99f32/100-no-lcygwin.patch M scripts/build/binutils/binutils.sh Log Message: ----------- Fix the build of elf2flt on Cygwin The -lcygwin -lc actually breaks the build: elf2flt picks up the symbols for getopt/optarg via in binutils-X.Y/include, where optarg is declared without dllimport attribute. Therefore it pulls in getopt() from libc/libcygwin, but since optarg is not prefixed with _imp__, it is pulled from libiberty. But the object file in libiberty also contains getopt() thus resulting in multiple definitions thereof. While there, kill extraneous -ldl passed into configure - configure detects -ldl successfully. Upstream: https://github.com/uclinux-dev/elf2flt/pull/6 Signed-off-by: Alexey Neyman Commit: 85ae00c1a6331d7738abb406a1eb59091c8a4535 https://github.com/crosstool-ng/crosstool-ng/commit/85ae00c1a6331d7738abb406a1eb59091c8a4535 Author: Alexey Neyman Date: 2017-02-22 (Wed, 22 Feb 2017) Changed paths: A patches/elf2flt/4820f0dbb77cd6564d5fa0817218fe2a1fb99f32/100-no-lcygwin.patch M scripts/build/binutils/binutils.sh Log Message: ----------- Merge pull request #614 from stilor/elf2flt-cygwin Fix the build of elf2flt on Cygwin Compare: https://github.com/crosstool-ng/crosstool-ng/compare/4de4507a6519...85ae00c1a633