1Alien::FFI(3)         User Contributed Perl Documentation        Alien::FFI(3)
2
3
4

NAME

6       Alien::FFI - Build and make available libffi
7

VERSION

9       version 0.25
10

SYNOPSIS

12       In your Build.PL:
13
14        use Module::Build;
15        use Alien::FFI;
16        my $builder = Module::Build->new(
17          ...
18          configure_requires => {
19            'Alien::FFI' => '0',
20            ...
21          },
22          extra_compiler_flags => Alien::FFI->cflags,
23          extra_linker_flags   => Alien::FFI->libs,
24          ...
25        );
26
27        $build->create_build_script;
28
29       In your Makefile.PL:
30
31        use ExtUtils::MakeMaker;
32        use Config;
33        use Alien::FFI;
34
35        WriteMakefile(
36          ...
37          CONFIGURE_REQUIRES => {
38            'Alien::FFI' => '0',
39          },
40          CCFLAGS => Alien::FFI->cflags . " $Config{ccflags}",
41          LIBS    => [ Alien::FFI->libs ],
42          ...
43        );
44

DESCRIPTION

46       This distribution installs libffi so that it can be used by other Perl
47       distributions.  If already installed for your operating system, and it
48       can be found, this distribution will use the libffi that comes with
49       your operating system, otherwise it will download it from the Internet,
50       build and install it for you.
51

SEE ALSO

53       FFI::Platypus
54           Write Perl bindings to non-Perl libraries without C or XS
55
56       FFI::CheckLib
57           Check that a library is available for FFI
58

AUTHOR

60       Author: Graham Ollis <plicease@cpan.org>
61
62       Contributors:
63
64       Petr Pisar (ppisar)
65
67       This software is copyright (c) 2014 by Graham Ollis.
68
69       This is free software; you can redistribute it and/or modify it under
70       the same terms as the Perl 5 programming language system itself.
71
72
73
74perl v5.34.0                      2021-07-22                     Alien::FFI(3)
Impressum