Skip to content
Browse files

Merge branch 'master' of github.com:jberger/Alien-Base

  • Loading branch information...
2 parents d9de2ae + 65de480 commit 801476462e22a394913d690defbf9c53ad431211 @jberger jberger committed Apr 4, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/Alien/Base/Authoring.pod
View
7 lib/Alien/Base/Authoring.pod
@@ -40,11 +40,11 @@ C<Alien::MyLibrary> is called by C<Some::Library::MyLibrary>'s build script, eit
use Alien::MyLibrary;
my $alien = Alien::MyLibrary->new;
- my $builder = Module::Build->new({
+ my $builder = Module::Build->new(
...
extra_compiler_flags => $alien->cflags(),
extra_linker_flags => $alien->libs(),
- });
+ );
$builder->create_build_script;
Additional information can be gotten from the C<config> method.
@@ -66,9 +66,10 @@ Finally, C<Alien::MyLibrary> must also be called by C<Some::Library::MyLibrary>
package Some::Module::MyLibrary;
use Alien::MyLibrary;
+ our $VERSION = '0.54';
require XSLoader;
- XSLoader::load();
+ XSLoader::load('Some::Module::MyLibrary', $VERSION);
# your code

0 comments on commit 8014764

Please sign in to comment.
Something went wrong with that request. Please try again.