File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed
Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 11Revision history for Alien-libextism
2+ v0.1.1 2024-08-09
3+ Add hack to rewrite static linking
24
35v0.1.0 2024-06-05
46 First version, released on an unsuspecting world.
Original file line number Diff line number Diff line change @@ -20,3 +20,13 @@ gather [
2020 [ 'pkg-config --cflags --static extism-static', \'%{.runtime.cflags_static}' ],
2121 [ 'pkg-config --libs --static extism-static', \'%{.runtime.libs_static}' ],
2222];
23+
24+ # Hack rewrite static linking to avoid referring to filename
25+ # ExtUtils::MakeMaker strips /path/to/libextism.a from LIBS
26+ after 'gather' => sub {
27+ my ($hash) = @_;
28+ if ($hash->{runtime_prop}{libs_static} =~ /libextism\.a/) {
29+ my $libextismdir = $hash->{install_prop}{prefix}.'/lib';
30+ $hash->{runtime_prop}{libs_static} =~ s/[^ ]+libextism\.a/-L$libextismdir -lextism/;
31+ }
32+ };
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use strict;
55use warnings;
66use parent qw( Alien::Base ) ;
77use version 0.77;
8- our $VERSION = qv(v0.1.0 );
8+ our $VERSION = qv(v0.1.1 );
99
10101;
1111
You can’t perform that action at this time.
0 commit comments