This is the mail archive of the
libffi-discuss@sources.redhat.com
mailing list for the libffi project.
small win32 patch
- From: Gildas Bazin <gbazin at netcourrier dot com>
- To: libffi-discuss at sources dot redhat dot com
- Date: Mon, 24 Jun 2002 11:30:50 +0200
- Subject: small win32 patch
Hi,
I'm cross-compiling libffi under my Debian GNU/Linux with mingw32 and I had
to slightly patch it to make it compile.
I added AC_PREREQ(2.52) to configure.in because cross-compiling is not
really well supported with autoconf2.13 and this is the default autoconf
used on Debian. The main problem with autoconf2.13 comes from not detecting
the right ranlib tool. This can also be overcome by adding an
AC_CHECK_TOOL(RANLIB, ranlib, :) line but this is too kludgy for my taste
;-)
There is also a missing header (ffi_private.h) in x86/win32.S
Regards,
--
Gildas
Index: configure.in
===================================================================
RCS file: /cvs/libffi/libffi/configure.in,v
retrieving revision 1.11
diff -u -r1.11 configure.in
--- configure.in 21 Oct 2001 19:18:41 -0000 1.11
+++ configure.in 24 Jun 2002 09:19:31 -0000
@@ -1,4 +1,5 @@
dnl Process this with autoconf to create configure
+AC_PREREQ(2.52)
AC_INIT(fficonfig.h.in)
AM_CONFIG_HEADER(fficonfig.h)
Index: x86/win32.S
===================================================================
RCS file: /cvs/libffi/libffi/x86/win32.S,v
retrieving revision 1.1
diff -u -r1.1 win32.S
--- x86/win32.S 22 Apr 2001 18:17:14 -0000 1.1
+++ x86/win32.S 24 Jun 2002 09:19:31 -0000
@@ -25,6 +25,7 @@
#define LIBFFI_ASM
#include <ffi.h>
+#include <ffi_private.h>
.text