From 9e51702c219305d2d4116e4d5e03393b1413d74b Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 3 Sep 2021 18:02:25 +0300 Subject: [PATCH] firefox: Trim absolute paths --- extra/firefox/build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extra/firefox/build b/extra/firefox/build index c77c4cc6..c89d491c 100755 --- a/extra/firefox/build +++ b/extra/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