diff --git a/_constraints b/_constraints
index b6f2ae7..7e8e699 100644
--- a/_constraints
+++ b/_constraints
@@ -1,15 +1,21 @@
-
-
-
- 18
-
-
- 21
-
-
+
+
+ 8
+
+
+
+
+
+ aarch64
+
+
+
+ asimdrdm
+
+ 5
+
+
+
diff --git a/deno-disable-lto.patch b/deno-disable-lto.patch
index 84946b7..f7ace34 100644
--- a/deno-disable-lto.patch
+++ b/deno-disable-lto.patch
@@ -1,6 +1,6 @@
---- a/Cargo.toml
-+++ b/Cargo.toml
-@@ -146,7 +146,6 @@ winapi = "=0.3.9"
+--- deno-2.0.0/Cargo.toml.orig 2024-10-11 10:48:05.784147338 +0200
++++ deno-2.0.0/Cargo.toml 2024-10-11 10:48:41.196337140 +0200
+@@ -231,7 +231,6 @@ winres = "=0.1.12"
[profile.release]
codegen-units = 1
incremental = true
@@ -8,11 +8,11 @@
opt-level = 'z' # Optimize for size
# Build release with debug symbols: cargo build --profile=release-with-debug
-@@ -158,7 +157,6 @@ debug = true
- [profile.bench]
- codegen-units = 1
- incremental = true
--lto = true
- opt-level = 'z' # Optimize for size
+@@ -243,7 +242,6 @@ debug = true
+ [profile.release-lite]
+ inherits = "release"
+ codegen-units = 128
+-lto = "thin"
# Key generation is too slow on `debug`
+ [profile.dev.package.num-bigint-dig]
diff --git a/deno.changes b/deno.changes
index 7023c2e..71ee891 100644
--- a/deno.changes
+++ b/deno.changes
@@ -1,3 +1,27 @@
+-------------------------------------------------------------------
+Sat Oct 12 04:07:25 UTC 2024 - Soc Virnyl Estela
+
+- Disable LTO. This seems to cause clang to recognize formats incorrectly,
+ thus, not recognizing the symbols. This also results disabling LTO
+ builds in rustc altogether removing the specified architecture
+ requirement for patch ./deno-disable-lto.patch
+
+-------------------------------------------------------------------
+Fri Oct 11 15:38:38 UTC 2024 - Soc Virnyl Estela
+
+- Add CFLAGS and CXXFLAGS
+
+-------------------------------------------------------------------
+Fri Oct 11 15:37:06 UTC 2024 - Soc Virnyl Estela
+
+- Refresh _constraints file.
+
+-------------------------------------------------------------------
+Fri Oct 11 08:49:46 UTC 2024 - Guillaume GARDET
+
+- Refresh patch:
+ * deno-disable-lto.patch
+
-------------------------------------------------------------------
Wed Oct 9 09:46:54 UTC 2024 - Soc Virnyl Estela
diff --git a/deno.spec b/deno.spec
index c3dbdfe..6482a8e 100644
--- a/deno.spec
+++ b/deno.spec
@@ -18,6 +18,7 @@
#
+%global _lto_cflags %nil
Name: deno
Version: 2.0.0
Release: 0
@@ -36,11 +37,11 @@ BuildRequires: cargo >= 1.80
BuildRequires: gn
BuildRequires: lld
BuildRequires: llvm
+BuildRequires: llvm-gold
BuildRequires: ninja
BuildRequires: pkgconfig
BuildRequires: python3-base
BuildRequires: rusty_v8
-BuildRequires: sccache
BuildRequires: zstd
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gmodule-2.0)
@@ -50,9 +51,7 @@ BuildRequires: pkgconfig(protobuf)
# deno does not build on 32-bit archs
ExclusiveArch: x86_64 aarch64 ppc64 ppc64le s390x
# PATCH-FIX-OPENSUSE - Disable LTO (to reduce req memory)
-%ifarch %{arm} aarch64
Patch10: deno-disable-lto.patch
-%endif
%package fish-completion
Summary: Fish Completion for %{name}
@@ -113,6 +112,8 @@ export V8_FROM_SOURCE=1
export CLANG_BASE_PATH=%{_prefix}
export CC=clang
export CXX=clang++
+export CFLAGS="%{optflags} -Wno-unknown-warning-option"
+export CXXFLAGS="%{optflags} -Wno-unknown-warning-option"
# https://www.chromium.org/developers/gn-build-configuration
export GN_ARGS="clang_version=${CLANG_VERSION} use_lld=true enable_nacl = false blink_symbol_level = 0 v8_symbol_level = 0"
%{cargo_build}