From cc99425aa9393907cb7fc93101a686c987be5ed9 Mon Sep 17 00:00:00 2001 From: ComixHe Date: Fri, 13 Dec 2024 14:32:50 +0800 Subject: [PATCH] erofs-utils: lib: correct erofsfuse build script Some of the symbols required by erofsfuse are provided by liberofs. When option 'enable-static-fuse' is set, all these object file should be exported to liberofsfuse.a Signed-off-by: ComixHe Link: https://lore.kernel.org/r/8725A28257A20420+20241213063250.314786-1-heyuming@deepin.org Signed-off-by: Gao Xiang --- fuse/Makefile.am | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fuse/Makefile.am b/fuse/Makefile.am index 1062b73..50186da 100644 --- a/fuse/Makefile.am +++ b/fuse/Makefile.am @@ -11,9 +11,9 @@ erofsfuse_LDADD = $(top_builddir)/lib/liberofs.la ${libfuse2_LIBS} ${libfuse3_LI ${libqpl_LIBS} if ENABLE_STATIC_FUSE -lib_LIBRARIES = liberofsfuse.a -liberofsfuse_a_SOURCES = main.c -liberofsfuse_a_CFLAGS = -Wall -I$(top_srcdir)/include -liberofsfuse_a_CFLAGS += -Dmain=erofsfuse_main ${libfuse2_CFLAGS} ${libfuse3_CFLAGS} ${libselinux_CFLAGS} -liberofsfuse_a_LIBADD = $(top_builddir)/lib/liberofs.la +lib_LTLIBRARIES = liberofsfuse.la +liberofsfuse_la_SOURCES = main.c +liberofsfuse_la_CFLAGS = -Wall -I$(top_srcdir)/include +liberofsfuse_la_CFLAGS += -Dmain=erofsfuse_main ${libfuse2_CFLAGS} ${libfuse3_CFLAGS} ${libselinux_CFLAGS} +liberofsfuse_la_LIBADD = $(top_builddir)/lib/liberofs.la endif -- 2.34.1