I find that on shell I must set the environment of msvc as cmd style , rather than linux style.
I used below parameter and complie stop again
./configure --host=x86_64-w64-mingw32 --prefix=/f/Software/Application/lib/libiconv \
CC="$(pwd)/build-aux/compile cl -nologo" \
CFLAGS="-MD" \
CXX="$(pwd)/build-aux/compile cl -nologo" \
CXXFLAGS="-MD" \
LD="$ld" \
NM="dumpbin -symbols" \
STRIP=":" \
AR="$(pwd)/build-aux/ar-lib lib" \
RANLIB=":"
......
libtool: link: /f/Software/Application/lib/libiconv-1.17/build-aux/compile cl -nologo -o .libs\\charset-1.dll .libs/localcharset.obj .libs/relocatable-stub.obj "@.libs\\charset-1.dll.exp" -Wl,-DLL,
-IMPLIB:".libs\\charset.dll.lib" 正在创建库 .libs\charset.dll.lib 和对象 .libs\charset.dll.exp
libtool: link: linknames=
libtool: link: false cr .libs/charset.lib localcharset.obj relocatable-stub.obj
make[2]: *** [Makefile:55: libcharset.la] Error 1
make[2]: Leaving directory '/f/Software/Application/lib/libiconv-1.17/libcharset/lib'
make[1]: *** [Makefile:34: all] Error 2
make[1]: Leaving directory '/f/Software/Application/lib/libiconv-1.17/libcharset'
make: *** [Makefile:41: lib/localcharset.h] Error 2
--------------------------------------------------------------------------------
The dll and lib is generated, it looks better now. But what is the current error!??
That line 55 is
$(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(CFLAGS) -o
libcharset.la -rpath $(libdir) -version-info $(LIBCHARSET_VERSION_INFO) -no-undefined $(OBJECTS)
libcharset/Makefile line 34 is " cd lib && $(MAKE) all"
line 41 is "$(INSTALL_DATA) include/libcharset.h.inst $(includedir)/libcharset.h"
# find libcharset/lib
libcharset/lib
libcharset/lib/.libs
libcharset/lib/.libs/charset-1.dll
libcharset/lib/.libs/charset-1.dll.exp
libcharset/lib/.libs/charset.dll.exp
libcharset/lib/.libs/charset.dll.lib
libcharset/lib/.libs/charset.exp
libcharset/lib/.libs/localcharset.obj
libcharset/lib/.libs/relocatable-stub.obj
libcharset/lib/ChangeLog
libcharset/lib/localcharset.c
libcharset/lib/localcharset.lo
libcharset/lib/localcharset.obj
libcharset/lib/Makefile
libcharset/lib/Makefile.in
libcharset/lib/relocatable-stub.c
libcharset/lib/relocatable-stub.lo
libcharset/lib/relocatable-stub.obj
----------------------------------------------------------------------