diff --git a/scripts/common/install-dependencies.sh b/scripts/common/install-dependencies.sh index 0e21cdb..9716cb8 100755 --- a/scripts/common/install-dependencies.sh +++ b/scripts/common/install-dependencies.sh @@ -18,6 +18,9 @@ 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 @@ -25,13 +28,13 @@ 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 -