curl-library
Re: Developing for "mingw32 -mms-bitfields" - both mingw32 and MSVC binary libs fail
Date: Tue, 12 Jul 2005 00:42:09 +0200
On Mon, Jul 11, 2005 at 11:26:23PM +0200, Daniel Stenberg wrote:
> I tried to setup a cross-compile to specificly build a libcurl.dll like
> this, and it would be interesting to get to know how it works:
>
> http://daniel.haxx.se/curl/
>
> It might be completely bad.
Strangely enough, it appears to work just fine! :-)
I had to rename the DLL to libcurl-3.dll, though.
FWIW, this is the result of my cross-compile:
http://atterer.net/jigdo/curl-7.14.0-win32-ssl-devel-mingw32msbitfields-ra050711.zip
To build my version, I did this:
- windres somehow didn't want to pick up winver.h, so I symlinked
/usr/i586-mingw32msvc/include/winver.h to the current dir and also
changed <winver.h> to "winver.h" in libcurl.rc. Ah, I just realized I
could have given it an -I switch instead.
- In Makefile.m32, replaced "-lssl32 -leay32" with "-lcrypto -lssl" for
the OpenSSL distro that I use.
- Compiled with
make OPENSSL_PATH=... ZLIB_PATH=... CC=mingw-gcc AR=i586-mingw32msvc-ar
RANLIB=i586-mingw32msvc-ranlib STRIP=i586-mingw32msvc-strip SSL=1 ZLIB=1
-f Makefile.m32
The mingw-gcc wrapper script calls "i586-mingw32msvc-gcc -mms-bitfields
-march=pentium -I... -L..."
For all the "...", of course substitute the correct dirs.
Cheers,
Richard
-- __ _ |_) /| Richard Atterer | GnuPG key: | \/¯| http://atterer.net | 0x888354F7 ¯ '` ¯Received on 2005-07-12