---
name: "Alien::Build::Plugin::PkgConfig"
section: "3pm"
platform: "linux"
package: "perl-alien-build"
version: "2.88-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Alien::Build::Plugin::PkgConfig"
---

# Alien::Build::Plugin::PkgConfig(3pm)

PkgConfig Alien::Build plugins

## NAME

Alien::Build::Plugin::PkgConfig - PkgConfig Alien::Build plugins

## VERSION

version 2.88

## SYNOPSIS

```
 use alienfile;
 plugin 'PkgConfig' => (
   pkg_name => 'foo',
 );
```

## DESCRIPTION

PkgConfig plugins use `"pkg-config"` or a compatible library to retrieve flags at probe and gather stages.

- Alien::Build::Plugin::PkgConfig::CommandLine

  Use the command-line `"pkg-config"` or `"pkgconf"` to get compiler and linker flags.

- Alien::Build::Plugin::PkgConfig::LibPkgConf

  Use the XS PkgConfig::LibPkgConf to get compiler and linker flags.

- Alien::Build::Plugin::PkgConfig::MakeStatic

  Convert .pc file to use static linkage by default.

- Alien::Build::Plugin::PkgConfig::MakeStatic

  Choose the best plugin to do `"pkg-config"` work.  The best choice is typically platform and configuration dependent.

- Alien::Build::Plugin::PkgConfig::PP

  Use the pure-perl PkgConfig to get compiler and linker flags.

## SEE ALSO

Alien::Build, Alien::Build::Plugin

## AUTHOR

Author: Graham Ollis \<plicease@cpan.org\>

Contributors:

Diab Jerius (DJERIUS)

Roy Storey (KIWIROY)

Ilya Pavlov

David Mertens (run4flat)

Mark Nunberg (mordy, mnunberg)

Christian Walde (Mithaldu)

Brian Wightman (MidLifeXis)

Zaki Mughal (zmughal)

mohawk (mohawk2, ETJ)

Vikas N Kumar (vikasnkumar)

Flavio Poletti (polettix)

Salvador Fandiño (salva)

Gianni Ceccarelli (dakkar)

Pavel Shaydo (zwon, trinitum)

Kang-min Liu (劉康民, gugod)

Nicholas Shipp (nshp)

Juan Julián Merelo Guervós (JJ)

Joel Berger (JBERGER)

Petr Písař (ppisar)

Lance Wicks (LANCEW)

Ahmad Fatoum (a3f, ATHREEF)

José Joaquín Atria (JJATRIA)

Duke Leto (LETO)

Shoichi Kaji (SKAJI)

Shawn Laffan (SLAFFAN)

Paul Evans (leonerd, PEVANS)

Håkon Hægland (hakonhagland, HAKONH)

nick nauwelaerts (INPHOBIA)

Florian Weimer

Marcel Telka (mtelka)

## COPYRIGHT AND LICENSE

This software is copyright (c) 2011-2022 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.
