summaryrefslogtreecommitdiff
path: root/patches/elf2flt
AgeCommit message (Collapse)AuthorFilesLines
2017-02-23Fix the build of elf2flt on CygwinAlexey Neyman1-0/+81
The -lcygwin -lc actually breaks the build: elf2flt picks up the symbols for getopt/optarg via <getopt.h> 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 <stilor@att.net>
2017-02-06Pick up upstream fixesAlexey Neyman1-294/+0
... including zlib fix in configure, needed to build canadian crosses with elf2flt. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-05Patch elf2flt to link libz lastAlexey Neyman1-0/+294
Signed-off-by: Alexey Neyman <stilor@att.net>