From ab7a2ac6471ad1b8824bcf477fee3509d33ee2aa Mon Sep 17 00:00:00 2001 From: Rasmus Thomsen Date: Tue, 6 Apr 2021 10:05:06 +0200 Subject: [PATCH] community/firefox: build with CLang, takes less RAM This way our 32-bit arches hopefully won't OOM --- community/firefox/APKBUILD | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/community/firefox/APKBUILD b/community/firefox/APKBUILD index 2e8d1cbb510..ea14f770757 100644 --- a/community/firefox/APKBUILD +++ b/community/firefox/APKBUILD @@ -14,8 +14,7 @@ url="https://www.firefox.com/" # armhf: build failure on armhf due to wasm # ppc64le: Rust SIGSEGVs when compiling gkrust # armv7: Needs Rust nightly for WASM -# x86: OOM (out of address-space) -arch="all !s390x !armhf !mips !mips64 !ppc64le !armv7 !x86" +arch="all !s390x !armhf !mips !mips64 !ppc64le !x86" license="GPL-3.0-only AND LGPL-2.1-only AND LGPL-3.0-only AND MPL-2.0" makedepends=" alsa-lib-dev @@ -292,6 +291,9 @@ build() { export MACH_USE_SYSTEM_PYTHON=1 # Find our triplet JSON export RUST_TARGET="$CTARGET" + # Build with CLang, takes less RAM + export CC="clang" + export CXX="clang++" # set rpath so linker finds the libs export LDFLAGS="$LDFLAGS -Wl,-rpath,$_mozappdir" -- GitLab