The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Alien::Build::Wrapper - Compiler and linker wrapper for late optional Alien utilization

VERSION

version 0.24

SYNOPSIS

 % perl -MAlien::Build::Wrapper=Alien::Foo,Alien::Bar -e cc -o foo.o -c foo.c
 % perl -MAlien::Build::Wrapper=Alien::Foo,Alien::Bar -e ld -o foo foo.o

DESCRIPTION

Note: this particular module is still somewhat experimental.

This module provides a command line wrapper for Alien modules that are based on Alien::Base. The idea is to eventually use this to allow optional use of Alien modules by XS which cannot probe for a system library. Historically an XS module that wanted to use an Alien had to always have it as a prerequisite.

FUNCTIONS

cc

 % perl -MAlien::Build::Wrapper=Alien::Foo -e cc cflags

Invoke the C compiler with the appropriate flags from Alien::Foo and what is provided on the command line.

ld

 % perl -MAlien::Build::Wrapper=Alien::Foo -e ld ldflags

Invoke the linker with the appropriate flags from Alien::Foo and what is provided on the command line.

ENVIRONMENT

Alien::Build::Wrapper responds to these environment variables:

ALIEN_BUILD_WRAPPER_QUIET

Do not print the command before executing

SEE ALSO

Alien::Build, Alien::Base

AUTHOR

Graham Ollis <plicease@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Graham Ollis.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.