[PATCH] erofs-utils: enhance static linking for lz4 1.8.x

Li Guifu wylgf01 at 163.com
Mon Jun 8 00:54:45 AEST 2020


On 2020/5/31 11:45, Gao Xiang via Linux-erofs wrote:
> From: Gao Xiang <hsiangkao at redhat.com>
>
> Since LZ4_compress_HC_destSize is static linking only on lz4 < 1.9.0,
> but usually both lz4 static and dynamic library are available.
>
> Previously, -all-static is used in erofs-utils compilation for such
> lz4 versions, but it has conficts with libselinux linking. Use another
> workable way [1] I've found instead.
>
> [1] https://stackoverflow.com/questions/8045707/how-to-link-to-the-libabc-a-instead-of-libabc-so
> Signed-off-by: Gao Xiang <hsiangkao at redhat.com>
> ---
> It looks good
> Reviewed-by: Li Guifu <bluce.lee at aliyun.com>
> Tested-by: Li Guifu <bluce.lee at aliyun.com>



More information about the Linux-erofs mailing list