firefox: redisable debug symbols for 32bit build environments

This commit is contained in:
Duncaen 2022-09-23 02:43:54 +02:00
parent 40e1813af8
commit 38f02cd639
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35

View File

@ -211,6 +211,16 @@ do_build() {
MOZ_APP_REMOTINGNAME=Firefox
!
# work around large debug symbols on 32-bit hosts
if [ "$XBPS_WORDSIZE" = "32" ]; then
echo "ac_add_options --disable-debug-symbols" >>.mozconfig
echo "ac_add_options --disable-debug" >>.mozconfig
export LDFLAGS+=" -Wl,--no-keep-memory"
# patch the rust debug level, this is hardcoded
vsed -i 's/debug_info = "2"/debug_info = "0"/' \
build/moz.configure/toolchain.configure
fi
if [ "$SOURCE_DATE_EPOCH" ]; then
export MOZ_BUILD_DATE=$(date --date "@$SOURCE_DATE_EPOCH" "+%Y%m%d%H%M%S")
fi