mpartel / bindfs

Mount a directory elsewhere with changed permissions.
https://bindfs.org/
GNU General Public License v2.0
449 stars 64 forks source link

Don't know how to build a static `bindfs` executable #152

Open nukemiko opened 10 months ago

nukemiko commented 10 months ago

I tried:

$ > cd bindfs-1.17.6
$ > mkdir build && cd build
$ > CFLAGS='-static' CPPFLAGS='-static' LDFLAGS='-static' ./configure --enable-shared=no --enable-static=yes --prefix /usr --with-fuse3
...
$ > CFLAGS='-static' CPPFLAGS='-static' LDFLAGS='-static' make
...
$ > CFLAGS='-static' CPPFLAGS='-static' LDFLAGS='-static' make DESTDIR="$PWD/dist" install
...
$ >

But I ended up with a dynamically linked bindfs executable. How can I make it actually build statically linked bindfs executable?

mpartel commented 10 months ago

No idea, sorry. However, bindfs should be a fairly ordinary autoconf/automake project, so whatever generic instructions you find for them should be applicable.

I don't know if there are any special pitfalls with statically linking libfuse or libfuse3.