This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Re: building libffi on win64 with msvc
- From: Dan Witte <dwitte at mozilla dot com>
- To: Timothy Wall <twalljava at dev dot java dot net>
- Cc: libffi-discuss at sources dot redhat dot com
- Date: Wed, 6 Jan 2010 10:45:09 -0800 (PST)
- Subject: Re: building libffi on win64 with msvc
Thanks for the link - I've got my win32 port working using modified versions of your wrapper scripts, with no build system hacks to libffi itself. Once I've got it tested a bit more I'll post a patch to the list.
I'd like to use your modified wrapper scripts in Mozilla. Would you be happy with me doing so? (There's no license header in those files, so I figured I'd ask.)
Regards,
Dan.
----- "Timothy Wall" <twalljava@dev.java.net> wrote:
> You can take a look at the native build setup for
> http://jna.dev.java.net
> (native/Makefile in SVN,
> https://jna.dev.java.net/source/browse/jna/trunk/jnalib/native/Makefile?view=markup)
>
> .
>
> I don't recall anything special about the configure flags, but I wrote
>
> cc and ld scripts to make cl and masm behave more like gcc (cc.sh and
>
> ld.sh in the same directory as Makefile; config has some existing
> stuff that's supposed to do this, but I was unable to get it to
> work).
>
> On Dec 29, 2009, at 4:10 PM, Dan Witte wrote:
>
> > All,
> >
> > I'm working on an x86 win32 msvc port of libffi, and from both the
>
> > code and discussions on this list I surmise that there's a working
>
> > win64 msvc port. Since I've had to make several changes to the build
>
> > system and configuration (besides, of course, translating the gas
> > assembly into msvc syntax), I have a couple of questions for those
>
> > who have tested it:
> >
> > a) With what build environment does the win64 port work?
> > b) With what configure flags (if any)?
> >
> > I currently have my port working with MSYS and a cygwin-like build
>
> > environment called mozillabuild, using CL and the MASM assembler in
>
> > VC9. (The port is for use in Mozilla, but I hope to upstream it if I
>
> > can get it to an acceptable point.)
> >
> > Regards,
> > Dan.