Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions scripts/common/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,23 @@ this_dir="$(readlink -f "$(dirname "${BASH_SOURCE[0]}")")"

cd "$tmpdir"

# keep the random tmpdir path out of the debug info, it would end up in the runtime's build ID
prefix_map_flags="-ffile-prefix-map=$tmpdir=."

wget https://github.com/libfuse/libfuse/releases/download/fuse-3.15.0/fuse-3.15.0.tar.xz
echo "70589cfd5e1cff7ccd6ac91c86c01be340b227285c5e200baa284e401eea2ca0 fuse-3.15.0.tar.xz" | sha256sum -c -
tar xf fuse-3.*.tar.xz
pushd fuse-3*/
patch -p1 < "$this_dir"/../../patches/libfuse/mount.c.diff
mkdir build
cd build
meson setup --prefix=/usr ..
CFLAGS="$prefix_map_flags" meson setup --prefix=/usr ..
meson configure --default-library static
ninja -v install
popd

# Minimize binary size
export CFLAGS="-ffunction-sections -fdata-sections -Os"
export CFLAGS="-ffunction-sections -fdata-sections -Os $prefix_map_flags"

wget "https://github.com/vasi/squashfuse/archive/0.5.2.tar.gz"
echo "db0238c5981dabbd80ee09ae15387f390091668ca060a7bc38047912491443d3 0.5.2.tar.gz" | sha256sum -c -
Expand Down
Loading