Fixing build on s390x
Resolves: RHEL-126377
This commit is contained in:
parent
c0a83b911b
commit
3baddb7b85
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user