workaround OOM when building on s390
If MOZ_DEBUG_FLAGS is empty, firefox's build will default it to "-g" which overrides the -g1 from line above and breaks building on s390 (OOM when linking, rhbz#1238225)
This commit is contained in:
parent
06c81c98a0
commit
62bcf95a3d
@ -473,6 +473,10 @@ MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-O2//')
|
|||||||
%endif
|
%endif
|
||||||
%ifarch s390
|
%ifarch s390
|
||||||
MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-g/-g1/')
|
MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-g/-g1/')
|
||||||
|
# If MOZ_DEBUG_FLAGS is empty, firefox's build will default it to "-g" which
|
||||||
|
# overrides the -g1 from line above and breaks building on s390
|
||||||
|
# (OOM when linking, rhbz#1238225)
|
||||||
|
export MOZ_DEBUG_FLAGS=" "
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390 %{arm} ppc aarch64
|
%ifarch s390 %{arm} ppc aarch64
|
||||||
MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
|
MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
|
||||||
|
Loading…
Reference in New Issue
Block a user