Skip to content
This repository has been archived by the owner on Mar 7, 2019. It is now read-only.

Commit

Permalink
Merge pull request #3 from run4flat/master
Browse files Browse the repository at this point in the history
I think this fixes issue #2. run4flat++
  • Loading branch information
jberger committed Apr 3, 2012
2 parents 50ee194 + 9300172 commit 5f1c7f2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Alien/Base.pm
Expand Up @@ -96,6 +96,12 @@ sub pkgconfig {

croak "No Alien::Base::PkgConfig objects are stored!"
unless keys %all;

# Run through all pkgconfig objects and ensure that their modules are loaded:
for my $pkg_obj (values %all) {
my $perl_module_name = blessed $pkg_obj;
eval "require $perl_module_name";
}

return @all{@_} if @_;

Expand Down

0 comments on commit 5f1c7f2

Please sign in to comment.