From 3baddb7b8543fe2165e8f7d46a782553ca277432 Mon Sep 17 00:00:00 2001 From: Jan Horak Date: Tue, 25 Nov 2025 16:25:10 +0100 Subject: [PATCH] Fixing build on s390x Resolves: RHEL-126377 --- firefox.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/firefox.spec b/firefox.spec index 842fdc0..b85dee8 100644 --- a/firefox.spec +++ b/firefox.spec @@ -1686,11 +1686,17 @@ MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads" # __global_ldflags that normally sets this. MOZ_LINK_FLAGS="$MOZ_LINK_FLAGS -L%{_libdir}" %endif -%ifarch %{ix86} s390x + +%ifarch %{ix86} export RUSTFLAGS="-Cdebuginfo=0" echo 'export RUSTFLAGS="-Cdebuginfo=0"' >> .mozconfig %endif +%ifarch s390x +export RUSTFLAGS="-Cdebuginfo=0 -C link-arg=-no-pie" +echo 'export RUSTFLAGS="-Cdebuginfo=0 -C link-arg=-no-pie"' >> .mozconfig +%endif + %if 0%{?bundle_nss} mkdir -p %{_buildrootdir}%{bundled_install_path}/%{_lib} MOZ_LINK_FLAGS="-L%{_buildrootdir}%{bundled_install_path}/%{_lib} $MOZ_LINK_FLAGS"