[Buildroot] [PATCH 2/2] enable static linking for libfuse

Arvid Picciani aep at exys.org
Thu Dec 14 15:27:36 UTC 2017


thanks for checking.
yes i did see the comment that's why i didnt submit a proper patch but more
an RFC.
It builds fine for me. maybe it doesn't try to use the dlopen stuff with
musl?


On Thu, Dec 14, 2017 at 4:21 PM, Thomas Petazzoni <
thomas.petazzoni at free-electrons.com> wrote:

> Hello,
>
> Thanks for your contribution. However...
>
> On Thu, 14 Dec 2017 11:57:06 +0100, Arvid E. Picciani wrote:
> > Signed-off-by: Arvid E. Picciani <aep at exys.org>
> > ---
> >  package/libfuse/Config.in  | 4 ----
> >  package/libfuse/libfuse.mk | 3 ++-
> >  2 files changed, 2 insertions(+), 5 deletions(-)
> >
> > diff --git a/package/libfuse/Config.in b/package/libfuse/Config.in
> > index 2b0e31a991..62b18c2444 100644
> > --- a/package/libfuse/Config.in
> > +++ b/package/libfuse/Config.in
> > @@ -1,7 +1,6 @@
> >  config BR2_PACKAGE_LIBFUSE
> >       bool "libfuse"
> >       # Really doesn't like static, see fuse/lib/fuse.c
>
> ...did you see this comment?
>
> fuse.c uses dlopen(), this requires shared library support.
>
> Apply your patch, and build the following configuration:
>
> BR2_arm=y
> BR2_STATIC_LIBS=y
> BR2_TOOLCHAIN_EXTERNAL=y
> BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y
> BR2_TOOLCHAIN_EXTERNAL_URL="http://autobuild.buildroot.org/
> toolchains/tarballs/br-arm-full-static-2017.11-rc1.tar.bz2"
> BR2_TOOLCHAIN_EXTERNAL_GCC_6=y
> BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_10=y
> BR2_TOOLCHAIN_EXTERNAL_LOCALE=y
> # BR2_TOOLCHAIN_EXTERNAL_HAS_THREADS_DEBUG is not set
> BR2_TOOLCHAIN_EXTERNAL_CXX=y
> BR2_INIT_NONE=y
> BR2_SYSTEM_BIN_SH_NONE=y
> # BR2_PACKAGE_BUSYBOX is not set
> BR2_PACKAGE_LIBFUSE=y
> # BR2_TARGET_ROOTFS_TAR is not set
>
> You'll get the following build failure:
>
> fuse.c:33:19: fatal error: dlfcn.h: No such file or directory
>  #include <dlfcn.h>
>                    ^
> compilation terminated.
>
> Also, passing --enable-static is not necessary, this is already done by
> the autotools-package infrastructure when BR2_STATIC_LIBS=y.
>
> Best regards,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux and Kernel engineering
> http://free-electrons.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildroot.org/pipermail/buildroot/attachments/20171214/0ba423a7/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config
Type: application/octet-stream
Size: 77278 bytes
Desc: not available
URL: <http://lists.buildroot.org/pipermail/buildroot/attachments/20171214/0ba423a7/attachment-0001.obj>


More information about the buildroot mailing list