From dba412efad92e5f6df52564f4f5a5fc4ac1ca33a Mon Sep 17 00:00:00 2001 From: Jan Horak Date: Oct 01 2020 09:33:12 +0000 Subject: Disable lto and fixing CK_GCM_PARAMS_V3 buildproblems with system nss --- diff --git a/thunderbird.spec b/thunderbird.spec index 140265b..82f3bde 100644 --- a/thunderbird.spec +++ b/thunderbird.spec @@ -369,6 +369,9 @@ echo 'export NODEJS="%{_buildrootdir}/bin/node-stdout-nonblocking-wrapper"' >> . #=============================================================================== %build +# Disable LTO to work around rhbz#1883904 +%define _lto_cflags %{nil} + %if 0%{?use_bundled_cbindgen} mkdir -p my_rust_vendor @@ -448,6 +451,10 @@ echo "ac_add_options --enable-linker=gold" >> .mozconfig %endif %endif +# We don't want thunderbird to use CK_GCM_PARAMS_V3 in nss +MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -DNSS_PKCS11_3_0_STRICT" + + export CFLAGS=`echo $MOZ_OPT_FLAGS |sed -e 's/-fpermissive//g'` export CXXFLAGS=$MOZ_OPT_FLAGS export LDFLAGS=$MOZ_LINK_FLAGS