title: How to build gnu `libiconv` on & for windows?
body: <p>I want to build a static library (*.LIB file) <a href="http://gnu.org/software/libiconv/" rel="nofollow noreferrer">GNU libiconv</a> on windows to be used with other libraries in Visual C++. Other libraries I'm using are built with "MultiThreaded DLL" (/MD) Runtime option. So, I need to build libiconv with the same option.</p>
  
  <p>Problem is the <code>libiconv</code> uses GNU build system and I want to compile with /MD option. You can see the source structure of libiconv here:<br>
  <a href="http://cvs.savannah.gnu.org/viewvc/libiconv/?root=libiconv" rel="nofollow noreferrer">http://cvs.savannah.gnu.org/viewvc/libiconv/?root=libiconv</a></p>
  
  <p>Mr. Zlatkovic maintains the windows port of <code>GNU libiconv</code> for libxml2</p>
  
  <p>you can see them here:</p>
  
  <p><a href="ftp://xmlsoft.org/libxml2/win32/iconv-1.9.2.win32.zip" rel="nofollow noreferrer">ftp://xmlsoft.org/libxml2/win32/iconv-1.9.2.win32.zip</a></p>
  
  <p>I cannot use his port. I need to build from the latest version of libiconv-1.13. I wonder how this guy has ported it? Can some one please tell me how to build *.lib from this and compile it using MSVC?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Actually, I need to build few more gnu libraries with same settings. So, if I get solution for one library. I can do the same for all others.</p>