summaryrefslogtreecommitdiff
path: root/configure.host
diff options
context:
space:
mode:
authorPaul Monson <paulmon@users.noreply.github.com>2019-02-19 03:58:25 -0800
committerAnthony Green <green@moxielogic.com>2019-02-19 06:58:25 -0500
commite1118af50599314a2cbac3eb51a81896e8e21d0c (patch)
treefe69ae1c8c15cc4ca6a8344dd905c25f23cb8bc3 /configure.host
parent44a6c28545186d78642487927952844156fc7ab5 (diff)
downloadlibffi-e1118af50599314a2cbac3eb51a81896e8e21d0c.tar.gz
changes for win32 on windows (#468)
Diffstat (limited to 'configure.host')
-rw-r--r--configure.host12
1 files changed, 5 insertions, 7 deletions
diff --git a/configure.host b/configure.host
index 7634c3a..64addf2 100644
--- a/configure.host
+++ b/configure.host
@@ -74,12 +74,6 @@ case "${host}" in
fi
if test "${ax_cv_c_compiler_vendor}" = "microsoft"; then
MSVC=1
- if test $ac_cv_sizeof_size_t = 4; then
- # libffi does not support microsoft tools for 32-bit windows
- # hosts. Try porting src/x86/sysv.S to intel assembly
- # format.
- UNSUPPORTED=1
- fi
fi
# All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
# We must also check with_cross_host to decide if this is a native
@@ -265,7 +259,11 @@ case "${TARGET}" in
SOURCES="ffi.c ffi_sysv.c sysv.S ppc_closure.S"
;;
X86 | X86_DARWIN | X86_FREEBSD | X86_WIN32)
- SOURCES="ffi.c sysv.S"
+ if test "$MSVC" = 1; then
+ SOURCES="ffi.c sysv_intel.S"
+ else
+ SOURCES="ffi.c sysv.S"
+ fi
;;
X86_64)
if test x"$TARGET_X32" = xyes; then