I am trying to build libiconv for Windows via Visual Studio, I am using official instructions from README.windows, and it fails to build with the following error:
libtool: error: unrecognised option: '-DPACKAGE_VERSION_STRING=\"1.15\"'
I was able to fix this error by patching lib/Makefile.in and src/Makefile.in:
-OBJECTS_RES_yes = iconv.res
+OBJECTS_RES_yes =
-OBJECTS_RES_yes = libiconv.res.lo
+OBJECTS_RES_yes =
but after that, it still fails with the following error:
../libtool: line 1745: test: too many arguments
/usr/bin/install: target '../bin/charset-1.dll' is not a directory