From b0f7dabb70cbb06e03b621c87459ffa954475a95 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 3 Sep 2021 18:01:54 +0300 Subject: [PATCH] firefox [testing]: Trim absolute paths --- testing/firefox/build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/testing/firefox/build b/testing/firefox/build index c77c4cc6..c89d491c 100755 --- a/testing/firefox/build +++ b/testing/firefox/build @@ -52,6 +52,10 @@ case $("$CC" -print-file-name=libc++.so) in */*) export CXXSTDLIB=c++ esac +# Instruct the compiler to trim absolute paths in resulting binaries and instead +# change them to relative paths ($PWD/... ./...). +export RUSTFLAGS="$RUSTFLAGS --remap-path-prefix=$PWD=." + export LDFLAGS="$LDFLAGS -Wl,-rpath=/usr/lib/firefox,--enable-new-dtags" export RUSTFLAGS="$RUSTFLAGS -Cdebuginfo=0" export MACH_USE_SYSTEM_PYTHON=1