diff options
author | Eric Wong <e@80x24.org> | 2023-07-26 12:45:15 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-08-02 20:29:25 +0000 |
commit | 6a1d150bea49b4c279fd096d74c76fd1e1c1dfbc (patch) | |
tree | 4fd6ebfe9dcac4151784702b72944fc3c89efd82 /lib/PublicInbox/LeiF3.pm | |
parent | 5bcb31c1a30e5d55235c935d547643bd48570780 (diff) | |
download | public-inbox-6a1d150bea49b4c279fd096d74c76fd1e1c1dfbc.tar.gz |
This enhances reusability in other projects which use the same C shim. The executable will also be `lei.fuse' rather than `leifs', because `leifs' is likely confused as `leafs' which makes no sense.
Diffstat (limited to 'lib/PublicInbox/LeiF3.pm')
-rw-r--r-- | lib/PublicInbox/LeiF3.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/PublicInbox/LeiF3.pm b/lib/PublicInbox/LeiF3.pm index 74ad135d..1121340a 100644 --- a/lib/PublicInbox/LeiF3.pm +++ b/lib/PublicInbox/LeiF3.pm @@ -13,11 +13,12 @@ use PublicInbox::Spawn; my $dir = ($ENV{PERL_INLINE_DIRECTORY} // die('BUG: PERL_INLINE_DIRECTORY unset')) . '/f3'; my $F3_NS = 'lei'; -my $bin = "$dir/${F3_NS}fs.fuse"; +my $bin = "$dir/${F3_NS}.fuse"; my ($srcpfx) = (__FILE__ =~ m!\A(.+/)[^/]+\z!); my @srcs = map { $srcpfx.$_ } qw(f3.h); my $xflags = ($ENV{CFLAGS} // '-Wall -ggdb3 -O0') . ' ' . - ($ENV{LDFLAGS} // '-Wl,-O1 -Wl,--compress-debug-sections=zlib'); + ($ENV{LDFLAGS} // '-Wl,-O1 -Wl,--compress-debug-sections=zlib') . + qq{ -DF3_NS='"$F3_NS"'}; sub xflags_chg () { open my $fh, '<', "$dir/XFLAGS" or return 1; |