Huh, first post in three years.
I tried this with Alien::zstd and it seems to work out and the .a file is deep under site/:
cpan Alien::zstd
I let that run for awhile, because I have an underpowered Surface 8.
C:\strawberry\perl\site\lib\auto\share\dist\Alien-zstd\lib\libzstd.a
I don't know about the path to point to this (please add those steps if you know the proper way), so I did the simple and expedient thing of going into the cpan/build/Compress-Stream-Zlib-0.206-0 directory (the last digits may be different for you). Under ext/zstd/lib is the source for Zstd, but I'm not falling that again. Instead of building all that, I simply copied the previous libzstd.a file into it:
cp C:\strawberry\perl\site\lib\auto\share\dist\Alien-zstd\lib\libzstd.
+a .\ext\zstd\lib
Then I ran the Build steps and it seems to work out:
perl ./Build.PL
./Build
./Build test
./Build install
Now the trick is packaging that for a distributed single-file app.
--
brian d foy <brian.d.foy@gmail.com>
|