Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

build libffi under MSWin32 with MSYS

  • Loading branch information...
commit 27f8a71666f0e6a9e949d1b3f1faf9ec75391674 1 parent 60f65ce
Graham Ollis authored
Showing with 11 additions and 0 deletions.
  1. +4 −0 Raw.xs
  2. +3 −0  dist.ini
  3. +4 −0 inc/MakeMaker.pm
4 Raw.xs
View
@@ -8,6 +8,10 @@
#include <ffi.h>
+#ifdef __MINGW32__
+#include <stdint.h>
+#endif
+
#include "perl_math_int64.h"
#include "perl_math_int64.c"
3  dist.ini
View
@@ -23,3 +23,6 @@ Devel::CheckLib = 0
[PruneFiles]
filename = README.pod
+
+[OSPrereqs / MSWin32]
+Alien::MSYS = 0
4 inc/MakeMaker.pm
View
@@ -9,6 +9,10 @@ override _build_MakeFile_PL_template => sub {
my $template = <<'TEMPLATE';
sub MY::postamble {
+ if($^O eq 'MSWin32')
+ {
+ return "\t$^X -MAlien::MSYS=msys_run -e \"chdir 'xs/libffi'; msys_run 'sh configure MAKEILFO=true --disable-builddir --with-pic'; msys_run 'make'\"\n\n";
+ }
return <<'MAKE_LIBFFI';
$(MYEXTLIB):
cd xs/libffi && ./configure MAKEINFO=true --disable-builddir --with-pic && $(MAKE)
Please sign in to comment.
Something went wrong with that request. Please try again.