[PATCH] erofs-utils: fuse: fix linking when using --with-selinux
Li GuiFu
bluce.lee at aliyun.com
Sat Dec 12 20:49:12 AEDT 2020
On 2020/12/11 10:29, David Michael wrote:
> The libselinux functions selabel_open and selabel_close are called
> by lib/config.c, so include libselinux in CFLAGS and LIBS to fix
> building erofsfuse.
>
> Signed-off-by: David Michael <fedora.dm0 at gmail.com>
> ---
>
> Hi,
>
> Trying to build both mkfs.erofs with SELinux and erofsfuse at the same
> time (with both --enable-fuse and --with-selinux) results in the
> following linking errors:
>
> /usr/bin/ld: ../lib/.libs/liberofs.a(liberofs_la-config.o): in function `erofs_selabel_open':
> /home/dm0/rpmbuild/BUILD/erofs-utils-1.2/lib/config.c:75: undefined reference to `selabel_open'
> /usr/bin/ld: ../lib/.libs/liberofs.a(liberofs_la-config.o): in function `erofs_exit_configure':
> /home/dm0/rpmbuild/BUILD/erofs-utils-1.2/lib/config.c:42: undefined reference to `selabel_close'
>
> Are these programs supposed to be configured separately? If this build
> configuration is supposed to work, this change fixes linking.
>
> Thanks.
>
> David
>
> fuse/Makefile.am | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
It's fixed
Reviewed-by: Li Guifu <bluce.lee at aliyun.com>
Tested-by: Li Guifu <bluce.lee at aliyun.com>
Thanks,
More information about the Linux-erofs
mailing list