firefox: Trim absolute paths

This commit is contained in:
Dylan Araps 2021-09-03 18:02:25 +03:00
parent b0f7dabb70
commit 9e51702c21
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

View File

@ -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