iconv x86_64 woe mingw

/bin/sh ../libtool –mode=link x86_64-w64-mingw32-gcc iconv_no_i18n.o ../srclib/libicrt.a ../lib/libiconv.la iconv.res -o iconv_no_i18n.exe
libtool: link: x86_64-w64-mingw32-gcc iconv_no_i18n.o iconv.res -o iconv_no_i18n.exe ../srclib/libicrt.a ../lib/.libs/libiconv.a
../lib/.libs/libiconv.a(iconv.o):iconv.c:(.text+0x1d5dd): undefined reference to `aliases2_lookup’
../lib/.libs/libiconv.a(iconv.o):iconv.c:(.text+0x1d791): undefined reference to `aliases2_lookup’
../lib/.libs/libiconv.a(iconv.o):iconv.c:(.text+0x1dc94): undefined reference to `aliases2_lookup’
../lib/.libs/libiconv.a(iconv.o):iconv.c:(.text+0x1de48): undefined reference to `aliases2_lookup’
../lib/.libs/libiconv.a(iconv.o):iconv.c:(.text+0x1e86b): undefined reference to `aliases2_lookup’
collect2: error: ld returned 1 exit status
make[1]: *** [iconv_no_i18n.exe] Error 1
make: *** [all] Error 2

 

this meant “use -O2” (possibly with newer gcc 5.2 the default -O value changed?)

 

http://lists.freebsd.org/pipermail/freebsd-stable/2014-February/077408.html

also here I guess was another fixish for it:

this