From 618b474fe241098b41c301ec30bca64fe9378e73 Mon Sep 17 00:00:00 2001 From: dr460nf1r3 Date: Sat, 6 Nov 2021 16:22:41 +0100 Subject: [PATCH] Add suggested changes from @nekosan --- PKGBUILD | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 4a61e0a..1ca45b1 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -145,6 +145,7 @@ ac_add_options --enable-application=browser mk_add_options MOZ_OBJDIR=${PWD@Q}/obj ac_add_options --prefix=/usr +ac_add_options --enable-linker=lld ac_add_options --enable-release ac_add_options --enable-hardening ac_add_options --enable-rust-simd @@ -159,6 +160,7 @@ export OBJCOPY='/usr/bin/llvm-objcopy' export RANLIB=llvm-ranlib export STRIP=llvm-strip + # Branding ac_add_options --enable-update-channel=release ac_add_options --with-app-name=${pkgname} @@ -264,8 +266,8 @@ build() { # -fno-plt with cross-LTO causes obscure LLVM errors # LLVM ERROR: Function Import: link error - # CFLAGS="${CFLAGS/-fno-plt/}" - # CXXFLAGS="${CXXFLAGS/-fno-plt/}" + CFLAGS="${CFLAGS/-fno-plt/}" + CXXFLAGS="${CXXFLAGS/-fno-plt/}" # Do 3-tier PGO echo "Building instrumented browser..."