thunderbird: try to fix build on i686.
This commit is contained in:
parent
8733df3a22
commit
aadf6378cf
1 changed files with 9 additions and 3 deletions
|
@ -39,6 +39,12 @@ if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
||||||
makedepends+=" libatomic-devel"
|
makedepends+=" libatomic-devel"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# try to minimize memory usage via debug symbols
|
||||||
|
# 'LLVM ERROR: out of memory' while compiling gtkrust
|
||||||
|
if [ "$XBPS_WORDSIZE" = "32" ]; then
|
||||||
|
nodebug=yes
|
||||||
|
fi
|
||||||
|
|
||||||
# we need this because cargo verifies checksums of all files in vendor
|
# we need this because cargo verifies checksums of all files in vendor
|
||||||
# crates when it builds and gives us no way to override or update the
|
# crates when it builds and gives us no way to override or update the
|
||||||
# file sanely... so just clear out the file list
|
# file sanely... so just clear out the file list
|
||||||
|
@ -135,11 +141,11 @@ do_build() {
|
||||||
|
|
||||||
# work around large debug symbols on 32-bit hosts
|
# work around large debug symbols on 32-bit hosts
|
||||||
if [ "$XBPS_WORDSIZE" = "32" ]; then
|
if [ "$XBPS_WORDSIZE" = "32" ]; then
|
||||||
export CFLAGS="${CFLAGS/-g/-g1}"
|
echo "ac_add_options --disable-debug-symbols" >>.mozconfig
|
||||||
export CXXFLAGS="${CXXFLAGS/-g/-g1}"
|
echo "ac_add_options --disable-debug" >>.mozconfig
|
||||||
export LDFLAGS+=" -Wl,--no-keep-memory"
|
export LDFLAGS+=" -Wl,--no-keep-memory"
|
||||||
# patch the rust debug level, this is hardcoded
|
# patch the rust debug level, this is hardcoded
|
||||||
sed -i "s/debug_info = '2'/debug_info = '1'/" \
|
vsed -i 's/debug_info = "2"/debug_info = "0"/' \
|
||||||
build/moz.configure/toolchain.configure
|
build/moz.configure/toolchain.configure
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue