From: Gao Xiang <hsiangkao@linux.alibaba.com>
To: ComixHe <heyuming@deepin.org>
Cc: linux-erofs@lists.ozlabs.org
Subject: Re: [PATCH v2] build: support building static library liberofsfuse
Date: Thu, 6 Jun 2024 15:53:21 +0800 [thread overview]
Message-ID: <903826ba-86f7-4c7a-8f11-0883ab9a44eb@linux.alibaba.com> (raw)
In-Reply-To: <3399126AB01D5AB6+2bad5767fc035a7a2234408b0fffa53b3a07aa51.1717659178.git.heyuming@deepin.org>
On 2024/6/6 15:39, ComixHe wrote:
> add new option '--enable-static-fuse' so that we
> could import erofsfuse as a static library directly
> into other projects
>
> Signed-off-by: ComixHe <heyuming@deepin.org>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Thanks,
Gao Xiang
> ---
> configure.ac | 7 +++++++
> fuse/Makefile.am | 9 +++++++++
> 2 files changed, 16 insertions(+)
>
> diff --git a/configure.ac b/configure.ac
> index 1989bca..f756139 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -147,6 +147,12 @@ AC_ARG_ENABLE(fuse,
> [AS_HELP_STRING([--enable-fuse], [enable erofsfuse @<:@default=no@:>@])],
> [enable_fuse="$enableval"], [enable_fuse="no"])
>
> +AC_ARG_ENABLE([static-fuse],
> + [AS_HELP_STRING([--enable-static-fuse],
> + [build erofsfuse as a static library @<:@default=no@:>@])],
> + [enable_static_fuse="$enableval"],
> + [enable_static_fuse="no"])
> +
> AC_ARG_WITH(uuid,
> [AS_HELP_STRING([--without-uuid],
> [Ignore presence of libuuid and disable uuid support @<:@default=enabled@:>@])])
> @@ -525,6 +531,7 @@ AM_CONDITIONAL([ENABLE_FUSE], [test "x${have_fuse}" = "xyes"])
> AM_CONDITIONAL([ENABLE_LIBLZMA], [test "x${have_liblzma}" = "xyes"])
> AM_CONDITIONAL([ENABLE_LIBDEFLATE], [test "x${have_libdeflate}" = "xyes"])
> AM_CONDITIONAL([ENABLE_LIBZSTD], [test "x${have_libzstd}" = "xyes"])
> +AM_CONDITIONAL([ENABLE_STATIC_FUSE], [test "x${enable_static_fuse}" = "xyes"])
>
> if test "x$have_uuid" = "xyes"; then
> AC_DEFINE([HAVE_LIBUUID], 1, [Define to 1 if libuuid is found])
> diff --git a/fuse/Makefile.am b/fuse/Makefile.am
> index 7eae5f6..c5c5696 100644
> --- a/fuse/Makefile.am
> +++ b/fuse/Makefile.am
> @@ -8,3 +8,12 @@ erofsfuse_CFLAGS = -Wall -I$(top_srcdir)/include
> erofsfuse_CFLAGS += ${libfuse2_CFLAGS} ${libfuse3_CFLAGS} ${libselinux_CFLAGS}
> erofsfuse_LDADD = $(top_builddir)/lib/liberofs.la ${libfuse2_LIBS} ${libfuse3_LIBS} ${liblz4_LIBS} \
> ${libselinux_LIBS} ${liblzma_LIBS} ${zlib_LIBS} ${libdeflate_LIBS} ${libzstd_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_la_LIBADD = $(top_builddir)/lib/liberofs.la ${libfuse2_LIBS} ${libfuse3_LIBS} ${liblz4_LIBS} \
> + ${libselinux_LIBS} ${liblzma_LIBS} ${zlib_LIBS} ${libdeflate_LIBS} ${libzstd_LIBS}
> +endif
next prev parent reply other threads:[~2024-06-06 7:53 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-23 7:31 [PATCH] build: support building static library ComixHe
2024-05-23 8:05 ` Gao Xiang
2024-06-06 2:13 ` Chen Linxuan
2024-06-06 2:22 ` Gao Xiang
2024-06-06 2:25 ` Chen Linxuan
2024-06-06 2:45 ` Gao Xiang
2024-06-06 3:06 ` Chen Linxuan
2024-06-06 3:13 ` Gao Xiang
2024-06-06 3:17 ` Chen Linxuan
2024-06-06 3:22 ` Gao Xiang
2024-06-06 4:18 ` [PATCH] build: support building static library liberofsfuse ComixHe
2024-06-06 6:31 ` Gao Xiang
2024-06-06 7:39 ` [PATCH v2] " ComixHe
2024-06-06 7:53 ` Gao Xiang [this message]
2024-06-11 9:23 ` Gao Xiang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=903826ba-86f7-4c7a-8f11-0883ab9a44eb@linux.alibaba.com \
--to=hsiangkao@linux.alibaba.com \
--cc=heyuming@deepin.org \
--cc=linux-erofs@lists.ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.